Add custom field new option based on another field value


I have created a select list custom field with some options:

Example (just to ilustrate!!!) :

City -> Sao Paulo


Porto Alegre

But some times , users need another option (not present in the list) , for example, Rio de Janeiro. So, users need to request to JIRA admin to add Rio de Janeiro into de Cities list.

I would like to have a field to allow the user to add (write) a new option into the list.

I was thinking to do it using a groove script:

For example:

New city :[text box to write the city name]

When the user submit the issue, it runs a script as post function that get the value of "new city" field and add it into "City" select list options.

When another user try to create an issue, the fild will be updated with the new option added by the previous user:

City -> Sao Paulo


Porto Alegre

Rio de Janeiro

And the JIRA admin will not spend time updating custom field options...

I was imagining some script like "Built import custom field options" (Built in scripts), but custom field config scheme hard coded, and user will see only the field to enter new options (one , or more).

1 answer

This widget could not be displayed.

You could take this approach, but surely it would be easier to use a label field?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

170 views 1 3
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