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.
Furthermore, I have found that even when editing the issue, the links are not really there.
See the screenshots below...
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/
maybe your link is not start with http
Hello - I just encountered this same issue. Any chance you ever found a fix? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.