Add custom field new option based on another field value

Hi,

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

Example (just to ilustrate!!!) :

City -> Sao Paulo

Brasilia

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

Brasilia

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
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
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

133 views 0 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