Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Is there an API available to fetch information regarding actor when issue get updated? Edited

Is there an API available to fetch information regarding actor when issue get updated?

We can get creator of issue using 'get issue API' but when issue gets updated we do receive an actor in the response  

1 answer

0 votes
Andy Heinzer Atlassian Team May 19, 2020

Hi Sneha,

If I understand correctly, you are looking to find out which user made a change to a Jira Cloud issue via the API.  The REST API can do this, but you tend to need to look closely at the history of the issue to determine this.  When using the REST API this requires that you use the expand parameter and then specify changelog.  This will return issue histories in a json format from which you can then look to see which user made which changes to the issue.

While the Get issue endpoint has this documented, I will share with you how I can find this via REST API call using curl.   First I made a change to a particular issue (changed the component on an issue from having a value to having no components at all), then I made the following REST API call:

curl -D- -X GET -H "Authorization: Basic [redacted]" -H "Content-Type: application/json" "https://[mycloudsite]"

This could return a large json response, especially if there have been lots of changes to an issue, but essential you can look through these to find an entry that has the change you are looking for, and then you should be able to see the user accountId and/or their display name:

"key":"SCRUM-64","changelog":{"startAt":0,"maxResults":2,"total":2,"histories":[{"id":"11257","author":{"self":"https://[mycloudsite][redactedUserAccountId]","accountId":"[redactedUserAccountId]","avatarUrls":{...[redacted because they are not important to this example ...},"displayName":"Charlie","active":true,"timeZone":"America/Chicago","accountType":"atlassian"},"created":"2020-05-19T13:22:15.735-0500","items":[{"field":"Component","fieldtype":"jira","fieldId":"components","from":"10065","fromString":"asdfasdf","to":null,"toString":null}]}

In this response you can see that Charlie change the componet from an internal value of 10065 to null (which means the component has been removed).  You can also see that there is an author value here that identifies that user's accountId, which would be a better means to correctly identify user accounts that make changes rather than just depending on the display name itself.

I hope this helps.  Please let me know if you have any followup concerns here.


Suggest an answer

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

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

322 views 9 7
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