Display a custom field values Dropdown ​​based on value of another dropdown field by java script Edited

I want to display a custom field values Dropdown ​​based on value of another dropdown field by java script only, please let me know 

I have 3 field the all are drop down

CF1,CF2, CF3 

In which the value of CF2 depend on value selected n CF1

and value of CF3 depend on value selected n CF2

1 answer

0 vote

You could try to inject some quite complex javascript, but that's a flaky solution at best, and unlikely to work in full, as there are several places you'd need to implement variants of it.

You would be better off doing it with an add-on.

The spec you've got there is pretty much what the "multi-level cascading select" add-on is for.

If you don't want to do that, or have other different dependent-field type things to do, then look to ScriptRunner "behaviours" or pick up something like "dynamic forms"

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

816 views 2 19
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you