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

richa priyanka 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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