Make a custom field visible/mandatory only when another custom field has a specific value

Athira Krishnan November 25, 2024

Hi,

 

I need a custom field to appear only when another custom field has a certain value.

For example:

If "custom_list" is a single select dropdown with possible values 1, 2, 3, 4

I need the user to add a value to "new_field" only when custom_list value is 1

 

I use Jira Premium. Is there any way to achieve this?

2 answers

2 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 25, 2024

Hi Aitrhira,

I can confirm you could make a field required when option 1 is selected inside a select list field using the Behaviours feature provided by ScriptRunner for Jira Cloud.

We have an example in our Script Library here, which shows how to do this.

Please note that currently, Behaviours only works on Jira Software company-managed projects, as documented here.

I hope this information helps.

Regards,

Kristian

Athira Krishnan November 25, 2024

Thanks, I don't have ScriptRunner though.

 

Is it possible to do the same with conditions or validators in the workflow?

Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 25, 2024

Hi,

It could be possible with Validators, but you would need an add-on out of the box to provide the ability to validate this, as I do not believe Jira has validators to do this out of the box.

Regards,

Kristian

2 votes
Marc - Devoteam
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.
November 25, 2024

Hi @Athira Krishnan 

OOTB you can't do that.

You'll need an add-on, such as scriptrunner.
With scriptrunner you can set field behaviours on transition screens (conditionally show/hide/set mandatory).

Marc - Devoteam
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.
November 25, 2024

HI @Athira Krishnan 

With Workflow conditions and validations, this is not possible.

Only If you would have a 3rd party marketplace app to extend your workflows with scripts, like JMWE, JSU, or scriptrunner, 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events