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

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.

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.

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,219 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot