Forums

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

Document Format Link Markings Don't Work In Issue Descriptions?

chillaiur
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 6, 2021

According to the documentation on link markings linked below, the following format should allow links to appear in the description of the issues I am creating via the JIRA restful API. 

{
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "Photo 1\n",
          "marks": [
            {
              "type": "link",
              "attrs": {
                "href": "link1"
              }
            }
          ]
        },
        {
          "type": "text",
          "text": "Photo 2\n",
          "marks": [
            {
              "type": "link",
              "attrs": {
                "href": "link2"
              }
            }
          ]
        },
        {
          "type": "text",
          "text": "Photo 3",
          "marks": [
            {
              "type": "link",
              "attrs": {
                "href": "link3"
              }
            }
          ]
        }
      ]
    }
  ],
  "version": 1
}

 

In fact, if you paste that into the Document Viewer tool, it does indeed work.
https://developer.atlassian.com/cloud/jira/platform/apis/document/viewer/

However, instead, I am seeing the following behavior.

- The text appears in the issue as described, but no URL linking is available. 

- Once you edit the issue, the URL linking to the text becomes available. 

Screen Shot 2021-09-06 at 10.17.15 AM.pngScreen Shot 2021-09-06 at 10.17.39 AM.png

Furthermore, I have found that even when editing the issue, the links are not really there. 

See the screenshots below...

Screen Shot 2021-09-06 at 10.31.44 AM.png

Please help.  I don't know if I am just doing something wrong or if this is some sort of a bug. I am sure it is more likely that I am just missing something. 

EDIT: Also, I know the example doesn't actually reference real link URLs.  However, this behavior is definitely occurring with real links, as well. 

Documentation: 
https://developer.atlassian.com/cloud/jira/platform/apis/document/marks/link/

https://developer.atlassian.com/cloud/jira/platform/apis/document/libs/

2 answers

0 votes
pakkawat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 7, 2024

maybe your link is not start with http

0 votes
Alex Gardiner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 17, 2023

Hello - I just encountered this same issue. Any chance you ever found a fix? Thanks!

Suggest an answer

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

Atlassian Community Events