I have an issue with a status Rejected but no resolution
My workflow has only 1 transition to that status and it has a form with the resolution field.
My understanding is that resolution is mandatory when present on a form
I've seen this issue many times and am trying to understand how it happens. I've tried to reproduce it but haven't any luck as yet.
I've been able to reproduce it and it's caused by scriptrunner behaviours.
When you open a form with the resolution field, it contains the following option
<option value="-1" selected="selected">Please select...</option>
if you restrict the list of options using behaviours setFieldOptions, as described in https://docs.adaptavist.com/sr4js/latest/features/behaviours/behaviours-examples/restricting-priority-and-resolution that option is removed and no option is selected ($("#resolution").val() is null).
It looks like the mandatory value check is looking for a value of -1, so it allows it in this case.
I've just tested this with scriptrunner 6.39.0 and it looks like the problem has been fixed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
One way that could happen if there's an automation that transition the ticket to "Rejected". Can you please look at the ticket's history to see how it's transition to "Rejected"?
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.