JQL previous status

Adolfo Casari
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.
May 29, 2015

Is there any JQL command (from Atlassian or 3rd party plugin) to query an issue previous status? I need to check all issues whose last transition was from status B (previous) to A (current).

Currenly JQL support:

status CHANGED FROM "B" TO "A"

but I need the last transition only, and the above can return any transition in the issues history.

 

Thanks in advance,

2 answers

1 accepted

0 votes
Answer accepted
Udo Brand
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.
May 29, 2015

Another idea would be to use a scripted field which would show the last status (see Hennings answer how to get that) and then search for that one.

"Last Status" ~ "B" and status = "A"
Adolfo Casari
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.
May 30, 2015

Thanks, this is a good approach.

2 votes
Udo Brand
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.
May 29, 2015

I'm not aware of such a JQL function. The closest you can currently get is

status CHANGED FROM "B" TO "A" and status = A

optionally add

and not status changed from "C" to "A"
Nauman Ikram April 23, 2019
status CHANGED FROM "B" TO "A" and status = A
and not status changed from "C" to "A"

adding above both rows don't return any result. Ideally it should return the result set.

currently using following lines
AND STATUS  CHANGED FROM "B" TO "A"
AND STATUS WAS NOT IN ("C","D","E")

Suggest an answer

Log in or Sign up to answer