How to find a old transition status??

Bunty March 6, 2019

Hello All,

In Jira workflow how to get previous values of a property when transition happened.

In my scenario, Transition can happen from any status to any other status, Now i want to know what is the previous status when transition happen.

Please help!

Thanks in advance,

Bunty

2 answers

1 accepted

3 votes
Answer accepted
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2019

Hello 

In workflow post function you can use below methods to get issue before transition and after transition

Issue issueAfterTransition = (Issue) transientVars.get("issue");
Issue issueBeforeTransition = (Issue) transientVars.get("originalissueobject");

So, you can use issue.getStatus() for both to get old and new value.

Hope it helps

Tuncay

Bunty March 20, 2019

Thank you @Tuncay Senturk 

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 20, 2019

You're very welcome 

Suggest an answer

Log in or Sign up to answer