Forums

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

Jira Select list dynamic variable

Alex
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 28, 2023

Hello I am going to create a custom field drop down list which is dynamic optional value.

For example, If user picker was Tom, I create a post function 

1. Get user picker field value Tom

2. Connect To API

3. Find the values which need to provide into  drop down list for Tom.

4. Remove drop down list all option 

5. Set this values into drop down list.

If I create another issue that user pick was Marry, repeat step 1-5 , marry’s issue will show new optional list but Tom’s will disappear because they share same custom field and I have remove all previous option.
Is there any solution that different user have different drop down list without hard code?

thanksss 

1 answer

0 votes
Giovanni Melai
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.
July 28, 2023

Hi Alex, I think that the best approach to do something like that is to use Behaviours functionality in the Scriptrunner addon. I see that you are on Jira Server so it's quite powerful there.

Suggest an answer

Log in or Sign up to answer