How can I make a custom field required on creation of an issue?

We're on 5.1, so I'm using the validators in transitions to make fields required as a ticket moves from step to step. However, Create isn't really a transition. How can I make a field required at the time of the initial save?

3 answers

1 accepted

9 votes
Joe Pitt Community Champion Aug 25, 2013

Just make it required in the field configuration for the issue type/project

How? As I said, we're on 5.1. Custom fields use the Jira Suite Utilities plugin to set up requirements on transitions. There is no "required" option on the actual fields in 5.1.

No, you don't need the JSU to do this. Jira has, as Joe says, mandatory field options built into it.

Go into the field configuration scheme for the project, find the one you are using for the current issue type and you'll find there's a list of all the fields. There ARE mandatory/optional flags against almost all of the fields (certainly all the custom fields)

I apparently can't respond to a comment, only an answer. But thanks, Nic, for the specific directions. I'm new to Jira, and pretty sure our documentation said the only way to handle required fields in our version was with the plugin. I wouldn't have known where to look.

There's a lot to be found, I don't think any new admin is able to find it all straight away! (I certainly couldn't when I started with it, and Jira was a lot more simple in version 2)

It's quite likely your documentation is trying to cover the scenario where you don't want a field to be mandatory ALL the time. Jira doesn't really do this - the field configuraiton makes a field mandatory from "create" onwards, so it can never be empty. The use case here is for things like "we don't know what the root cause of an issue is until we've investigated properly, but we don't want to close issues without a root cause". That's when "make field mandatory" validators kick in!

Sorry if I'm missing something, but will this not make the field mandatory for all screens using that field configuration? That is, not just the create screen? What is the simplest way to make the field mandatory only for the create screen? Also, is it possible to associate a field configuration with a screen? Not and issue type or project. If I have only one issue type within 1 project but want a custom field to only be mandatory for 1 screen what are my options?

Please, do not conflate field configurations and screens.  They are totally independent artefacts (so, no, you can't associate a field configuration with a screen).  It's better to not even talk about them together, as people get confused.

If you want something mandatory on create, but able to be blanked out later, you need to set it optional in the field configuration, and use a validator on transitions where you need it filled in.

you have to configure field require validator on create step.

got to workflow, click on new/Open step there you can see Create transition, click on it and configure validator there

But I don't WANT to create a new step. Create Issue is a default Jira action. I don't want to mess with that, just want a way to make one of the fields required before being able to save a new issue.

If someone in 2016 wants this feature there is the new plugin Workflow Essentials for JIRA. Its not free but will solve this problem very well. smile

In general: Edit the Workflow and in the Workflow Diagram click on the "Create" Transition and add the Mandatory Field Validator.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

131 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you