I have been using curl requests to retrieve the status transitions for issues to determine the duration time of an issue in a status. This curl request retrieves that information: https://<domain>/rest/api/2/issue/<issue key>?expand=changelog. I noticed with several issues that the name of the last status in the json array does not match the current status for the issue.
I am relatively new with exposure to Jira, so I need to know if I am missing something, or if this is a bug.
Hi Zoryana,
I think I answered my own question since the time I created this post. Here is a typical history item inside the JSON for a JIRA issue:
<pre>
[created] => 2019-04-04T16:24:43.000+0000 [items] => Array ( [0] => Array ( [field] => status [fieldtype] => jira [from] => 10053 [fromString] => New [to] => 25351 [toString] => PMO Review ) )
</pre>
I had previously used the "fromString" as the actual or current status. It is the
"toString" that is and does match the current status.
Karl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community!
You can get information about the duration of transitions using a plugin from the marketplace, such as Time in Status for Jira Cloud by SaaSJet. It can be very useful for you because of its functions automatically calculates how long an issue has been in its current status.
Also, this plugin generates other reports: Average time in status, Assignee time, Status Entrance Date, Time in Status per Date, Status Count and Transition Count.
To analyze the reports closer, you can export them as XLS or CSV files. Also, you can view all reports as charts (Pie, Bar and Area Charts) and export them (as PNG, JPEG or PDF files).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.