Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Setting select list custom fields options based on the selected value in the same select list.

Venugopal.ReddyL
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!
September 10, 2020

Hi ,

We have a custom select field called " Approval Status" and it contains the below values to select.
1. None
2. Draft
3. Requested
4.Withdrawn
5.Approved.

1.When user selects "Draft" from the select list then automatically "Approval status" should display only one option called "requested".
2. When user selects "Requested" the drop down should display only "Withdrawn" and "Approved" to select further and it should not display draft/none.
3.When user selects "Withdrawn" it should display only "Draft" "Requested".

Can you please help me how to get this done.

 

Note : We don't want to use cascading select list.

Thanks
VenApp status field.png

1 answer

Suggest an answer

Log in or Sign up to 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.
September 10, 2020

Your requirement is met by the cascading select list, so saying "we don't want to use a cascading select" directly contradicts what you describe.

If you want to do this, use the cascading select list for it.

Is there a reason that you don't want to do this properly?

Venugopal.ReddyL
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!
September 10, 2020

Hi Nic,

Thanks for the response, the thing is we have some limitations with respect to issue page and team doesn't want to use cascading select list.

 

can we control the options behavior using script runner? like below

I have created a issue with approval status value as "Draft" and when i select withdrawn from Draft...it should display error message like Withdrawn should be selected from Requested value option only.

So that user can select requested and then withdrawn.

Thanks

Venu

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.
September 10, 2020

"Doesn't want to use it" is not a reason, you already said "we don't want to use it".

Why do they not want to use a cascading select?

The cascading select does exactly what you are asking for, and avoids any need to throw up error messages to slow people down.  Don't try to kludge it with other things like Behaviours, you don't need to.  Just use the cascading select.

TAGS
AUG Leaders

Atlassian Community Events