Hi guys, I'm querying the REST API for feature groups data with the following URL: http://work/jira/rest/api/2/search?maxResults=100&jql=project=%XXXXX"+AND+issuetype="FeatureGroup"
There are feature groups that contains data in the Jira Web UI as shows the following image, but those transitions in some cases are not present within the response of the feature group (customfield_10201 is null)
This value is received for only in a few feature groups' response:1_*:*_1_*:*_428390000_*|*_6_*:*_2_*:*_3099699000_*|*_5_*:*_1_*:*_345594000 I need to get the transitions data from the response for every feature group.Any help?
Sorry, it took me a while to work out what "feature groups" were and realise they're not really important here. They are just something (a custom field, issue type or label, etc) that group together the issues you are interested in.
Now, for any issue, you are actually looking at two things here.
The picture you give us is a screenshot of a "transition history tab". This is a display built by some code that looks back over the full history of an issue, pulls out the transitions and works out the time spent in each status and the number of executions.
The string of numbers, underscores and stars is the "time in status" field, from another (system) add-on. It's gathering data for the time in status gadget.
I suspect you'll need to read and parse the history for yourself to do your reporting over REST.
Hi Nic, maybe I wasn't clear enough describing the problem. Yes, I need to read and parse the history to my report over REST, actually that is what I'm doing for some of the "time in status", having that context in mind the question is:Why I don't get the "time in status" value for every Issues REST's responses?
Some issues may not have any data for it - new issues for example, the "time in status" is not calculated because it's changing constantly until they move to a new status (created time is a fixed point, but "now" isn't). The field might also not be valid for the issues too.
I'd be looking in the history for this stuff anyway.
I understand, but I have requested for "Issues" that have been moving through several statuses and still do not come with the "time in status field" then I'm not able to create my report from the REST response.
It looks like you're new here. Sign in or register to get started.