Make a field required for one project but not for another

Graeme Fidler August 6, 2013

I want to make the Components field a required field on one project, but not a required field on another project.

E.g. When creating an Issue in "Project A", I want the Component field to be a mandatory field, but when creating an Issue in "Project B" I do not want Component field to be mandatory or infact displayed.

How do I do this? At the moment I only seem to be able to globally control if the field is mandatory for all projects.

2 answers

1 accepted

0 votes
Answer accepted
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2013

you can make component field mandatory in two ways

1. you can make mandatory on field configuration, go to the field configutation which you configured for that issue type on which you want to make mandatory then search for component field and click on rquired option

check here for more information(Making a field required or optional)

https://confluence.atlassian.com/display/JIRA/Specifying+Field+Behaviour

another one is by configuring field required validator on required transition

check this

https://jsutil.atlassian.net/wiki/display/JSUTIL/JIRA+Suite+Utilities+Workflow+Validators

Udo Brand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2013

You would need to have two field configurations (one with component mandatory and one optional) see Rambanans first link. Then add those field configuration to the field configuration schemes in those projects (they need to use different ones)

Like Paula Hidalgo likes this
0 votes
Jennifer Zou April 10, 2017

Yes, you need to create two field configurations.

Vlad Gomzyakov July 18, 2017

I can't figure out what to do when I created the second field configuration. How do I assign it to the project?

Oksana_Veretiuk March 10, 2019


See section Associating a field configuration scheme with a project

The whole flow is:

1. Create to "Jira Settings" > Issues > Fields section > Fields Configarations 

2. There will be Default Fields Configaration created and we need to create the one with the field we want to be required > click on "Add Field Configuration" > Name it (my is "Required"

Screen_1.png

3. Click on the "Required" next to the field you want to be required (it will get "Required" next to its name after this.

4. Go to "View Field Configuration Schemes" (on the same page on the blue panel) > "Add Filed Configuration scheme"

5. Go to the project you want this field to be required > Project Settings > Fields > Actions > Use a Different scheme > Select the scheme created in the previous step > Associate

Screenshot_1.png

6. Field gets assosiated and required while creating Bug for this Test project. And not required for the other projects

Screenshot_2.png

7. To add Issue types you want your field to be required > clicl "Actions" > "Edit Fields" > click "Assosicate an issue type with a field configuration" > select the issue type and your field configuration 

Screenshot_3.png


Note that when you create a new project you need to associate it again as by default Default Configuration is applied.

Like # people like this
jessica.souza June 2, 2021

Great detail, thank you

Suggest an answer

Log in or Sign up to answer