Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add custom field new option based on another field value

fbeck_br
Contributor
February 2, 2014

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 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2014

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