Create a dependent field in Jira 6.2.2

Hi,

I am looking for steps to create dependent fields in Jira. My requirement is that, I would like to create a dependent dropdown value set. For example, If I have two fields Car Make and Model. So if I select Car make as Toyota the model field should show Camry, Corolla etc and I select Honda as a make then model should show Civic, CRV etc.

I would appreciate if someone can guide me with the steps to achieve it. Can this achieved by using any plugin? I tried behaviors plugin but I think it doesn't with 6.2.2. Is there a step by step documentation on achieving this?

Thanks for your help!

Rama

2 answers

You can use the built-in Cascading Select custom field type. It allows defining options just like you want. Try it out and get back if you've got troubles setting this up.

https://confluence.atlassian.com/display/JIRA/Configuring+a+Custom+Field#ConfiguringaCustomField-default_valueDefaultvalue

Thanks Boris! I learnt something new in Jira today! But, I think this is not helping me when I elaborate my requirement further. I have defined some components in Jira. And there are 2-3 fields whose drop down value set is based on the value of Component field. Looks like with cascading there is only 1 to 1 relationship between parent value and child. I am looking for 1 to many. So based value of component (or any other field) I would like to calculate the dropdown values of child field 1, field 2 , field 3.

Thanks again for your help!

Rama

Check if this custom field add-on will satisfy your requirements

https://marketplace.atlassian.com/plugins/net.customware.jira.plugins.mdsf

Otherwise if it's even more complicated you can probably use Script Runner's scripted field and use some funky groovy scripts to calculate the options to be shown :)

Check if this custom field add-on will satisfy your requirements
Otherwise if it's even more complicated you can probably use Script Runner's scripted field and use some funky groovy scripts to calculate the options to be shown :)

Thanks Boris! I think I will end up using Script Runner. Do you know if there is good (step by step ) documentation to use script runner? I found few documents but I find it difficult to follow them :(

That's the only one I know of:

https://jamieechlin.atlassian.net/wiki/display/GRV/Script+Runner

But install it and play around in the Script console. Use the JIRA java api docs for reference and also you can always ask in this forum if you've got troubles.

Hello Ramamand and Boris,

I have similar problem, I need to create 2 custom fields with drop down dependent values. I don't want cascade field as it doesn't have the field name for the second field and plus the default value for each parent field is not changeable and it always shows none. I need to be able to change the default for each field. ex. field1:       a1,a2,a3 field2: when they choose a1 for fied1 it should show b1,b2,b3, with default value: b1 when they choose a2 for fied1 it should show b4,b5,b6, with default value: b4 when they choose a3 for fied1 it should show b7,b8,b9, with default value: b7

 

I was wondering if you can help me please.

 

Thanks!

Hi Friends,

Its 2018 now, Is there any add-in which can perform this requirement. I know about Power Custom Fields but they have limitation like it works only with Autocomplete feature and max two custom fields can be dependent, I have around 5 fields dependent on single parent.

Just wanted to know, if we have any thing else to achieve this now.

 

Thanks.

Boris mentioned ScriptRunner four years ago.  That add-on has "behaviours" which can modify the way fields work in the client.  It can do many field connections.

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...

772 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