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

0 votes
Accepted answer

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 Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,086 views 11 10
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