While accessing the issue details using API
https://xxxxx.atlassian.net/rest/api/latest/issue/Issue_ID,
I am getting comment body as !image-20190604-104537.png|width=1484,height=599! while I want to get the url of the image.
Is it possible? If yes how?
Hello Prashant,
Welcome to Atlassian Community!
Unfortunately, there's no parameter through REST API to know the URL of attachments embedded to JIRA Comments, however, knowing the name, you can get the attachment URL by searching for them in the attachment section of the same issue REST API call. These would be the steps:
1 - Once you got the attachment name (!image-20190604-104537.png), run the following REST API call
https://yourdomain.atlassian.net/rest/api/3/issue/{issuekey}
2 - Run a search to find the name in the attachment section of the call and you will find its URL:
Additionally, if you can provide us what is the final target you want to achieve with this REST API< we can may provide you a more useful workaround to achieve your need.
Let us know if this information helps. :)
Hello Petter,
I have the same issue as Prashant with my project. I need an URL so I can show images from issues at an other website as a HTML element (TOPdesk). Unfortunately, I can only get an authorized URL when using REST API like you showed in your answer.
Is there a way so I can get an unauthorized URL or to authorize in the authorized URL itself?
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.