JQL previous status

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

Accepted Answer
0 votes

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"

Thanks, this is a good approach.

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"

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

433 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you