gajira-create
gajira-create copied to clipboard
Support for Atlassian Format Document
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!
Related: https://github.com/atlassian/gajira-create/issues/34