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

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

0 votes
Joseph 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

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

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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

72 views 3 3
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