Dynamically change selections in custom field?

Hi -

I'm interested in dynamically setting values in a dropdown list based on selection from another field. For instance:

Location: 1, 2, 3

Item: A, B, C

Location 2 may only have item A and C, so we would like to limit the options to that. Any suggestions?

Thanks!

Bill

3 answers

1 accepted

Thanks for the link! I've been playing around with the Behaviours plugin a little. The fields aren't updating and I see the following error in my logs:

WARNING: A servlet POST request, to the URI http://dtc25003b1c80d7:8082/rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.

Seen anything like this with it before? We're running JIRA 5.1.4

0 vote

That's a cascading select field, if you want the built-in route.

Some sites have different requirements and do this with javascript, which can work well, but is a little tricky in later versions of Jira

Sorry meant that as a comment...

We're running 5.1.4 - any suggestions on a javascript implementation? Say I need to load the list from a file.

I have to wave the "out of my depth" flag. I know javascript can do it, and that in later versions of Jira, you can struggle because you've got four ways to create issues, all slightly different etc, but my javascript is not strong enough to provide you with any real help.

I'd search answers for the word "javascript" - a good chunk of the questions here are about manipulating Jira fields with it.

We're running 5.1.4 - any suggestions on a javascript implementation? Say I need to load the list from a file.

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

682 views 1 18
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