Forums

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

How to disable filed untill dependent value selected in other custom filed?

Kishore D
Contributor
March 17, 2022

I want to add one custom filed with few values in drop down.

How can we  Manage poping up other custom filed based on previous value selected.
for example:
i have one custome filed like Are you Employee: if YES is selected for this filed, immediately another filed should display like Employee ID: 

If selected No. Nothing should dispaly

How can we manage this filed? any plugin or module which helps here?

1 answer

0 votes
Jorden Van Bogaert
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.
March 17, 2022

Hi @Kishore D 

You can achieve this with Adaptavist ScriptRunner for Jira using the "Behaviours" functionality. (

You'll need some groovy knowledge for it, but they also have a library full of useful scripts. It's relatively easy and offers almost unlimited use cases.

Hope this helps.
Kind regards
Jorden

Kishore D
Contributor
March 17, 2022

Hi Jorden,

Thanks for the response. if there is any sample code which i can modify and use?

can i get the groovy code. 

Jorden Van Bogaert
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.
March 17, 2022

Hi @Kishore D 

You can get a lot of script code from the Adaptavist Library.

Example below checks customfield with ID "12345" for "A value". If the value of the field matches "A value", another field (with ID 54321) will be set as hidden.

def testField = getFieldById("customfield_12345")

if(testField.getValue() == "A value"){
getFieldById("customfield_54321").setHidden(true)
}

Hope this helps!

Suggest an answer

Log in or Sign up to answer