Prevent transition to current status with scriptrunner?

flaimo April 17, 2019

This talk here mentions that you can prevent a user from using a transition that leads to the current issue status: https://youtu.be/EWyxm2Ab0Kc?t=1226

How would the groovy code look like, so it can be reused as a file with every transition without needing modification?

 

Bonus question: How did he manage to create a transition that goes from "All" to "All"

 

Screenshot 2019-04-17 at 15.05.57.png

1 answer

1 accepted

0 votes
Answer accepted
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 17, 2019

Hi @flaimo ,

we use this code: issue.status.name != '<your status>'

It is not a general function that can be used anywhere, I know. But I doubt that this is possible.

Suggest an answer

Log in or Sign up to answer