Block transition when issue has been in a status

AgileHappyLearner October 26, 2023

Hello,

I have issues with this possible status: DRAFT, CANCELLED, PENDING APPROVAL, APPROVED, DONE AND OBSOLETE and the workflow in the attached image. I would like to add the possibility to transition from PENDING APPROVAL to CANCELLED, but only if the issue hasn't been never in APPROVED. I check some possibilities with scriprunner but I only can add the option of allowing the transition if the issue "has been" in a status and no if it "hasn't been" that is what I need. How could I do this?

IssueCancelled.PNG

 

Thanks in advance!

1 answer

0 votes
Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 26, 2023

Hi @AgileHappyLearner ~ you should be able to do this by adding a "JQL query matches condition [ScriptRunner]" condition on a workflow transition from Pending Approval > Cancelled.  The JQL should be something like:

 

status was not Approved

Suggest an answer

Log in or Sign up to answer