Getting Status/Transition/Workflow 'updated' date using REST or SOAP Api in Jira

Nick T September 12, 2012

I am trying to monitor when the status of an issue changes, right now I am considering polling the issue using the Jira REST Api on (http://example.com:8080/jira/rest/api/2/issue/{issueIdOrKey}. This gives you the current status of a ticket and when it was updated (any update, i.e. new comments, attachments).

Example:

...

fields {

...

updated: "2011-08-07T09:08:16.000+0100",

...

status
{

self: "http://example.com:8080/rest/api/2/status/5",
description: "A resolution has been taken",
iconUrl: "http://example.com:8080/images/icons/status_resolved.gif",
name: "Resolved",
id: "5"
}

...

In order to know when the issue has changed state I have to keep polling the status it to see if its changed. Is there a way of know exactly when the issue status was updated? Jira comments gives 'updated/created' fields, so you know when they have been edited or created.

I thought about getting the transition data to see if that showed any dates, but nothing here either:

http://example.com:8080/jira/rest/api/2/issue/{issueIdOrKey}/transitions

I looked at the SOAP Api to see if it was in there, but I don't think it is! It seems like its not in the Api at all.

Thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2012

You can use the search function using JQL. JQL will be something like this (to get issues where status was changed in the last 5 minutes):

status changed after -5m

You can then restrict it to selected issues or projects or whatever you like.

http://docs.atlassian.com/jira/REST/latest/#id127511

Nick T September 12, 2012

Thank you! That's exactly what I needed.

Abhishek Yada June 21, 2016

Hi, Is the link still pointing to the right page. I am looking for an option to find all issues that are updated/created in last 5 minutes

TAGS
AUG Leaders

Atlassian Community Events