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.
Online 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.