How to get last modified comment or changelog for a given jira ISSUE via REST API

Hi All,

I want to know how to get last modified comment or changelog information for given jira ISSUE via REST API. Currently When we get data via REST for an ISSUE we get all the comments exist and similarly if we expand REST API to get changelog(?expand=changelog) we all the changelog exists for the given ISSUE.

Please advice me how to do it. Thanks in advance.

Thanks,

Balaji Kandasamy

3 answers

1 accepted

So that mean iterating all the comments or changelog is the only option available. Wierd !!

0 vote
Timothy Chin Community Champion Sep 10, 2013

You'll have to loop through the objects to get the latest. Can't remember if it is ordered but you can try getting the last array.

I have the same need. Need to query comments after a particular date (and also on a custom field if possible). 

Were you able to get the answer?  

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

182 views 0 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you