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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,011 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot