gajira-comment icon indicating copy to clipboard operation
gajira-comment copied to clipboard

Does not seem to be compatible with ADF (Atlassian Document Format)

Open jledoux-sonergia opened this issue 1 year ago • 1 comments

Hello @mboudreau

Thank you for maintaining this repo !

I'm trying to pretty format JIRA comments, by masking ugly 1km long urls with titles for instance, but Atlassian REST API is not compatible with markdown format, so I've tried to format it with Atlassian Document Format, but it shows as raw JSON on Jira issues.

Here is a basic example of minified JSON string in ADF format, I've removed most of its content to make it readable in this issue:

- name: Comment on JIRA issue
  uses: atlassian/gajira-comment@v3
  with:
    issue: ${{ inputs.JIRA_CODE }}
    comment: |
      {"version":1,"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Ticket déployé sur l'environnement ${{ steps.string.outputs.uppercase }}:"}]}]}

Shows as: image

Is there a way to format comments using either markdown or ADF ? Or Should it be a feature request ?

jledoux-sonergia avatar Sep 08 '23 08:09 jledoux-sonergia

I would like to get more information about this too. Thanks.

jobnte avatar Sep 22 '23 09:09 jobnte