Hi All!
I have a custom field in JIRA that I need to make mandatory when the ticket is closed. I can't make it "required field" because then my customer email tickets to Jira will not work.
What are my options? How do I make it "hey this can't be blank if you want to close the ticket?"
You can utilize a Workflow Validation for this functionality.
Once the above steps are completed, don't forget to publish the updated workflow!
My custom field does not show up on the list of fields to choose on the validator. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try to start typing out the name of the custom field in the textbox? Jira doesn't always seem to provide all available options in the drop down lists.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you may want to create a transition screen with that field on it as well. Gives them the opportunity to change or fill it out before the transition happens.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that's a good idea. A transition screen will attract the attention to that field.
You can set up the transition rule more loosely, meaning that during the transition, there just needs to be a value in the field, but the value may have been set up already (before getting to the transition screen), or more strictly, the rule would require the value to be set up on the transition screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agreed - the nice thing about a transition screen is that you can also put directions/information there to help the user with that field. Great suggestion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As a slight twist, we use Conditions instead of Validation - the option to move to the next status doesn't even show up if the condition hasn't been met.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree that a Condition is also an option, but a benefit of using a Validator is that you can instruct the user (with an error message) as to why they can't transition the issue instead of leaving them guessing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's true in some cases. We use it more as a gatekeeper strategy, primarily in our onboarding/offboarding process that contain a great deal of automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We also tried the Condition at some point, but it was causing a lot of confusion, people did not know why the option to close "disappeared" and they were complaining all the time. With a validation there would be at least an error message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, we do that as well for some required fields.
In our case, certain branches of our workflow are shown or not shown, based on select conditions - not just fields completed, but the content of those fields. For example, onboarding might provide different paths based on Employee or Contractor values in a field.
We also use Validation in other cases where we might need a value required, but don't care what that value is (e.g. a phone number or email address).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try adding a generic default value to the field. For some of my restricted fields I add 'default' to the drop down list and made that the default. That way I can identify the new records where the user didn't select a value, but prevented the creating an error on a new record attempt in my sync process.
Good luck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Best way is to add it as a validator on a transition to 'Closed'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could try to add a validator to the workflow?
If you use the Field Required Validator, then you can select what field must be filled in and a custom message if it is not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That would be a workflow thing to do. Add a validator on the close transition that the field cannot be blank (or require it to be changed) to make the transition.
Let me know if this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As others have already said, you could use either a validator or a condition. Each has its own pros and cons and at the end, you need to make the decision.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have 2 options:
1. If you really want to make it Required while closure use "Workflow Validation" as Gary explained
2. You also said you wanted to make it mandatory but only for this project: You can use a different Field configuration scheme for this project with this field. Als you can use Context if want to enable this for a particular issue type. Here in this field configuration you can make this a Requerd field. But plaese know that now this will be a mandaory field when you create ticket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Jira Administrator
Configure Jira Software, Jira Core, or Jira Service Management, including global settings, permissions, and schemes.
Managing Jira Projects Cloud
Learn to create and configure company-managed projects in Jira Software and partner effectively with Jira Admins.
Learning Path
Become an effective Jira Software Project Admin
This learning path is designed for team leaders who configure Jira Software projects to match a team's processes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.