Out of the below 4 required fields (I made them required) , I want to make the 2 circled ones as required during closing ticket , but they show as required for ticket creation itself. Any idea how to change it to make them required only for ticket close and not for ticket create?
You can go a couple ways with this:
Hi, thank you for the response. Your second suggestion is better for us. Can you give some screenshot that shows where to create a validator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a look at this video tutorial: https://youtu.be/RIKYX-z4meM
Which shows how you can combine a transition screen with a validator.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thank you. I was able to follow the steps till I came to the below options. I do not see the below "Fields Required Validator" option in my list of options. How do I get this option?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, in my previous comment above , I said I do not see the "Fields Required Validator" option. But I could do the same in a different way by selecting the insight option and adding below groovy script per the instruction there.Then I followed the remaining steps in your video at https://youtu.be/RIKYX-z4meM
I also tested that the new popup came (screenshot below) when i tried to close the ticket. But when i hit the "Close" button in that popup without entering any values in the 2 highlighted fields, it just closed without giving me the error message I set up.
Can you see if the below groovy script is wrong ? I used the correct "ID" for those fields.
--------------------------------------------------------------------------
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.fields.CustomField;
def value = issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10302)); // Change ID to the correct one
if !(value >= 0) {
return "Required!";
}
return true
--------------------------------------------------------------------------
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.