I've tried using the ScriptRunner plug in with a groovy script:
issue.parentObject.status.name == "REALISATION"
I used a conditional custom script to be placed at the transition between the statuses but it doesn't seem to work. I would like to use the scriptrunner plugin as we do not have the capacity for the jira workflow extension.
Thanks all.
Hello,
is really your status in capitals? Jira make them appear in capitals in UI, but you need to check proper status name in administration (Issues -> Statuses).
Also, better way to write the script like this:
issue.parentObject?.status?.name == "Realisation"
Where ? makes it check if the object exists. In your solution if parentObject or status return null, script crashes. With ? it won't crash.
Have a nice day.
Yes the status is really in capitals. Thank you for that insight, it did worked out in the end. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This script worked for me! Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.