Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Required field per issue type and screen?

Reinhard Mayr September 19, 2018

I have a custom field, FixVersion, which is basically an optional field.

For issue type Bug I would like to have this field mandatory in a specific screen when the issue transitions to In Progress. For other issue types I would like to leave the field optional.

I have been trying and digging for some time without conclusion -- could you please give me a hint how to achieve that? Thanks in advance!

4 answers

1 vote
Alexey Matveev
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.
September 20, 2018

Hello,

You would need an add-on for it. For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

Here is a tutorial on how to make a custom field required:

https://confluence.cprime.io/display/TR/Make+a+custom+field+required+based+on+another+custom+field

You can do the same with the Fix Versions field for a specific issue type.

0 votes
Reinhard Mayr October 1, 2018

Thanks everybody for looking at my question! I found that the requirement of the fix version actually does not depend on the issue type (my bad...). While the field is not required in the workflow, I used JSU to require the field (for all issue types) in the resolve screen.

Thanks again!

0 votes
Yogesh Mude
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.
September 20, 2018

Hi @Reinhard Mayr

I would say first create/copy the existing field configuration and associate it with only Bug issue type for the specific project.

Create a workflow/transition screen and add the FixVersion field to this screen.

Edit the Bug issue type workflow and add the workflow screen to in progress transition.

To make the Fix Version field mandatory/required to specific transition you to use the third party plugin like Jira Suite Utilities, Script Runner.

Using this anyone plugin you can make the FixVeriosn field mandatory.

Please have a look at the below KB, hope it helps.

https://confluence.atlassian.com/jirakb/how-to-make-jira-applications-fields-required-in-a-workflow-transition-691011903.html

0 votes
Deleted user September 20, 2018

Hi @Reinhard Mayr,

 

Create a different workflow all together for Bug issue type and add a transition screen when the Bug issue is transitioning to InProgress. 

Add a required field in the validator to the transition screen. You may get these validators through 3rd party add-ons 

OR

If you do not want to create a different workflow for Bug, you can add a conditioned validator which will verify the issue type.

 

Regards,

Gangavath Kishore Kumar.

Suggest an answer

Log in or Sign up to answer