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

0 vote

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

239 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