Hi,
I want to automatically archive issues that has been moved to the "Cancelled" status.
I tried using the Scriptrunner "Archive this issue" postfunction, I used the below condition- & added it as the last step of the post function after "Fire a generic event that can be processed by listeners"
issue.resolution.name == 'Cancelled'
In your description, you write that you want to test the "Cancelled" status, but in that one-liner code you are testing the "Cancelled" resolution! Status and resolution are not the same!
If you really want to work with the status, then the code should be:
issue.status.name == 'Cancelled'
@Aron Gombas _Midori_ Thank you for the comment. !!
I changed the code as mentioned and still nothing. After I transition the issue to CANCELLED, nothing happens. But the logs of the script says "success".
Any idea what I'm missing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!
Register today
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.