JIRA Service Desk 4.13.2 (Server)
I need a custom field to be mandatory only when solving or canceling the ticket.
If I define the custom field as mandatory, it is invalid, because I only need to fill it in when resolving or canceling the issue.
I have checked the "workflow validations" but can't find any valid ones.
Someone could help me?
Thank
To make the field mandatory in the in the transition you will need to add a validator. Then like @brbojorque says you would add a transition screen so you are sure they can actually enter the value.
https://confluence.atlassian.com/adminjiraserver/using-validators-with-custom-fields-938847524.html
As you have mentioned, I think it is necessary to install the Utilities Suite (JSU Automation Suite for Jira Workflows - Server Version) to change a field to mandatory during the workflow. But that Suite of Utilities is not free.
Is it possible to use a "Custom script validator" or "Simple scripted validator" to make a custom field mandatory during the workflow?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have seen this:
I have already created the transition screen, but when I go to create the validation to change the field to mandatory, no valid option appears.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Prueba Cliente Edu ,
You should check out how to add a Transition Screens and requiring one or more fields in the transition solving or canceling a ticket (assuming it is an actual status).
https://confluence.atlassian.com/jirakb/add-a-custom-field-to-transition-screen-718834736.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As you have mentioned, I think it is necessary to install the Utilities Suite (JSU Automation Suite for Jira Workflows - Server Version) to change a field to mandatory during the workflow. But that Suite of Utilities is not free.
Is it possible to use a "Custom script validator" or "Simple scripted validator" to make a custom field mandatory during the workflow?
Thank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Prueba Cliente Edu ,
Definitely, it will work in ScriptRunner Simple scripted validator however it may need a bit of coding to make it work in a Transition Screen (You have to detect the name of the Transition Screen and do the validation)
Here's the condition, make sure to update it with the name of your custom field.
cfValues['My Single Select']?.value == NULL
For reference:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for your answer.
I'm doing it, but it returns the following error:
How can I solve it? Thank
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.