It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get image url for comments with images?

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? 

1 answer

0 votes

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:

Screen Shot 2019-09-18 at 17.42.38.png

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. :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

838 views 5 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you