Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Atlassian Format Document #35

Open
francosang opened this issue Sep 12, 2022 · 1 comment
Open

Support for Atlassian Format Document #35

francosang opened this issue Sep 12, 2022 · 1 comment

Comments

@francosang
Copy link

francosang commented Sep 12, 2022

One of our requirements for our CI setup is to create a Jira ticket as part of the job with a specific formatted rich text in the ticket's description.

Currently, we archive this using the v3 API for creating issues and the Atlassian Format Document in the description property.

We have been trying to get the same result with the gajira-create but without any luck.

I have tried different action configurations, with multiline and single-line texts, single quotes and double quotes, escaping characters, and more combinations.
But the resulting Jira ticket description is always a plain JSON text.

      - name: Create Jira task
        id: create-jira-task
        uses: atlassian/[email protected]
        with:
          project: PROJ
          issuetype: Task
          fields: '{"priority": {"name": "Highest"}}'
          summary: TITLE
          description: "{ \"version\":1, \"type\":\"doc\", \"content\":[{\"type\":\"heading\",\"attrs\":{\"level\":1},\"content\":[{\"type\":\"text\", \"text\":\"Header\"}]}]}"
#         description: '{ "version":1, "type":"doc", "content":[{"type":"heading","attrs":{"level":1},"content":[{"type":"text", "text":"Header"}]}]}'

I have not found any examples or alternatives on the web.
Is it possible to do this?

Thank you!

@Piedone
Copy link

Piedone commented Sep 14, 2022

Related: #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants