Required custom field only on one screen

Steps:

  1. Create custom field (required, number)
  2. Field associated only on "Resolution screen"

When I create task, I get an error that the field is blank, but this field not found on this screen.

What to do?

3 answers

1 accepted

This widget could not be displayed.

Hi there.

Once you set the field to be required then jira would required this field to be filled on any transition in the workflow. Putting this field up only on one screen makes it invisible to the user on the rest of the screens yet it is still required to have any value. So the problem is, as a user you can't set the value on the invisible field :)

The best way is to use a FieldsRequired validator from Jira Suite Utilites plug-in. Set the field to be non-required gobally, and o the particular screen when you want it to be visible, enable the field and set the validator to require this field only in this transition.

Validators can be set when you go to workflow, edit it, click on the particular transition, click validators, click "Add" and choose FieldsRequired. Remember to publish the worflow draft afterwards! :)

If anybody's answer helped you to solve your problem, please be sure to click "accept" button on the particualr answer :)

I already tried to use Jira Suite Utilites plug-in. And I create new workflow, edit "resolve" transition - added validator. This is worked fine. But i can not made this changes in default workflow and made Draft for default workflow.

I should change workflow schemas for all projects? (more 30 projects)

Or I can add custom workflow to Default Workflow Scheme?

Thanks for the answer anyway! :)

As far as I know, you cannot set custom worflow to be system's default (but I might be wrong).

If that's true than yes, it may require to change workflow schemes for all projects.

This widget could not be displayed.
Yew Teck En Atlassian Team Dec 17, 2012

The field required validator from JIRA Suite Utilities would help you to achieve the first option. It would check the validation during the workflow transition.

As for second option, you either need to add the field to the screen when you create it or go to the screen option in JIRA administration then add it manually.

This widget could not be displayed.

For error :

field require validator is configured on create issue transition due to this it is showing error message

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

65 views 1 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