It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to make a required field

Maggie Stearns Jun 06, 2016

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

3 votes
Boris Georgiev Jun 06, 2016

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 Leader 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. 

ErikP Jun 15, 2016

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

0 votes
Nicolas Bourdages Jun 06, 2016

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.

ErikP Jun 15, 2016

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

0 votes
Lukas Gotter Jun 15, 2016

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

774 views 7 0
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you