Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do you include a markdown link in JIRA Cloud Issue description field using HTTP post

Steven Vits
Contributor
March 12, 2024

When I perform a post action to https://company-prod.atlassian.net/rest/api/3/issue

I do want to embed HTML hyperlinks in the description of the issue.

Using a simple html tag seems not to work. the entire html code is shown instead of the url.

 

also tried to include markdown notification but still no succes.

1 answer

1 accepted

2 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2024

Hi @Steven Vits 

Here is an example how to achieve this in the description field.

"description": {
    "version": 1,
    "type": "doc",
    "content": [
        {
            "type": "paragraph",
            "content": [
                {
                    "type": "text",
                    "text": "TEST",
                    "marks": [
                        {
                            "type": "link",
                            "attrs": {
                                "href": "https://google.com"
                            }
                        }
                    ]
                }
            ]
        }
    ]
}  

 Also see the Atlassian developer forum; post-html-issue-description-with-jira-rest-api-v3 

Steven Vits
Contributor
March 12, 2024
thank yoiu verty much!
next code is with some extra paragraphs.
now trying to implement that in a power automate flow
"description": {
            "version": 1,
            "type": "doc",
            "content": [
                {
                    "type": "paragraph",
                    "content": [
                        {
                            "type": "text",
                            "text": "testtext>"
                        }
                    ]
                },
                {
                    "type": "paragraph",
                    "content": []
                },
                {
                    "type": "paragraph",
                    "content": [
                        {
                            "type": "text",
                            "text": "hier",
                            "marks": [
                                {
                                    "type": "link",
                                    "attrs": {
                                    }
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "paragraph",
                    "content": []
                },
                {
                    "type": "paragraph",
                    "content": [
                        {
                            "type": "text",
                            "text": "testtext"
                        }
                    ]
                }
            ]
        },
Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events