Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Depends Upon "Text Field" Value the Drop down List has to populate with the related value

Edited

Hi Team,

I have a Two custom Fields one is Text Field (Text SI) and the other one is Drop Down List (Source) here is the thing I have 20 Text field Values we are using while we creating the Tickets and  we have like 20 Values in dropdown List Field  also which is related to Text Field Values.

I need when I select the Particular Value From the Text Field automatically the Dropdown List has to Populate with The related Value. 

Here i have tried one script when i Select the Particular Text Field Value its  populating the dropdown list with "Null" Value. But I need to populate the dropdown List with Value.

Customfield_120805 //Text Field

Customfield_120822 // Select List

if(getFieldById("customfield_120805").getValue().equals("High Severity")){
getFieldById("customfield_120822").setHidden(false)
getFieldById("customfield_120822").setRequired(true)
}else{
getFieldById("customfield_120822").setFormValue(null)
getFieldById("customfield_120822").setRequired(false)
getFieldById("customfield_110822").setHidden(true)
}

 I tried insted of "Null" i gave the Value from DropDown List but it didnot work.

So can you please help me with this script 

Thanks,

Kumar

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

183 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you