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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

59 views 0 5
Read article

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