Issue unresolved but transitioned has form with resolution field

Daniel Garcia November 24, 2021

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.

2 answers

1 accepted

0 votes
Answer accepted
Daniel Garcia November 28, 2021

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.

Daniel Garcia November 28, 2021

I've just tested this with scriptrunner 6.39.0 and it looks like the problem has been fixed

1 vote
Yanty Ghani [ServiceRocket]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 24, 2021

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"?

Suggest an answer

Log in or Sign up to answer