Post HTML Issue Description with JIRA REST API v3

Hi @TamasKalman I found this question while running into the same problem myself. I edited a Jira ticket manually and then used the Get issue endpoint: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get to look at the format of the description object, which for me (I needed a link and a code snippet) looked like this:

        "description": {
            "version": 1,
            "type": "doc",
            "content": [
                {
                    "type": "paragraph",
                    "content": [
                        {
                            "type": "text",
                            "text": "My text "
                        },
                        {
                            "type": "text",
                            "text": "PART-OF-MY-LINK",
                            "marks": [
                                {
                                    "type": "link",
                                    "attrs": {
                                        "href": "https://website.com"
                                    }
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "paragraph",
                    "content": []
                },
                {
                    "type": "codeBlock",
                    "attrs": {},
                    "content": [
                        {
                            "type": "text",
                            "text": "global name 'test' is not defined"
                        }
                    ]
                }
            ]
        },

copying that worked for me, hope this helps others.

2 Likes