How to make a required field

When transitioning from one state to another (For example from "In Progress" to "Resolved"), I have a "Resolve Issue" screen. I would like one of the custom fields on that screen to be required.  

My choices for implementation appear to be these two choices:

  1. Create a condition on the transition that prevents transitioning if that field is not populated.
  2. Create a validator that gives an error if that field is not populated.

I don't like #1 because the user will not necessarily understand why the "Resolve" transition button does not appear for them. #2 is OK, but then the users are asking why there is no red asterisk next to those required fields when they enter the screen. I don't want to make them required in the field scheme since they are not required until this point in the workflow.

 

Any other possible ways to implement this?

4 answers

This widget could not be displayed.

There are add-ons that allow you to make the fields required using approach #2 and have a red asterisk.

You can do that with:

I would recommend Script Runner as it allows virtually any kind of customisations in your JIRA instance

This widget could not be displayed.
Joe Pitt Community Champion Jun 06, 2016

I don't believe any of the plug-ins that will make a field required on a transition puts the asterisk next to the field. You can get around it by including the asterisk in the field name if it really bothers your users. The lira-suite-utilities plug-in will pop a message it is required if they didn't fill it in when clicking to complete the transition. I've never had much push back from the users as long as they are told in training about the behavior. 

The already mentioned Workflow Essentials for JIRA https://marketplace.atlassian.com/plugins/de.codecentric.jira.wes/server/overview can show red asterisk on the transition screen

This widget could not be displayed.

I'm afraid you'd have to code an add-on to get something like that. Validators can't have an asterisk in the transition screen, since the actual call to the transition hasn't happened yet, therefore the screen cannot "know" that the transition is valid or not.

#2 is really your best option there. Although there's no red asterisk, when you try to submit the form there will be a customizable red message. Users will get used to it soon enough in my experience.

The already mentioned Workflow Essentials for JIRA https://marketplace.atlassian.com/plugins/de.codecentric.jira.wes/server/overview can show red asterisk on the transition screen

This widget could not be displayed.

Hello Maggie,

I would recommend to use the Mandatory Field Validator of our Add-On "Workflow Essentials for JIRA". See: https://marketplace.atlassian.com/plugins/de.codecentric.jira.wes/server/overview

Otherwise you could use "Script Runner" and "JIRA Suites Utilities" which are bit more complicated to setup. 

Best regards,

Lukas 

 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

148 views 2 0
Join discussion

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