Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent transition to current status with scriptrunner?

flaimo
Contributor
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 Champion
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