Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can we retrieve the reassignment count of an issue from JIRA using REST API and JQL?

richa priyanka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 30, 2018

I wanted to get the following details for an issue (incident) in JIRA using REST calls:

1. The number of times the incident's "assignee" field's value changed.

2. If this value is more than 1, the list of previous values for the "assignee" field for the incident.

Is there a specific JQL for the same? Any other methods are welcome as well.

 

Thanks already for your help!

1 answer

1 vote
Thomas Deiler
Community Champion
January 30, 2018

Dear @richa priyanka,

there is no specific REST function for this.  You have to fire a

GET /api/2/issue/<issue key>&fields=*all&expand=changelog

with the additional information of expanding the history. Then your app/script has to parse through all history events and count itself.

All the information you require is within the history.

So long

Thomas

Thomas Deiler
Community Champion
February 1, 2018

Dear @richa priyanka,

can I help you further or was my answer good enough to be accepted?

Many Thanks

Thomas

Suggest an answer

Log in or Sign up to answer