Forums

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

Is it possible to make somehow not to allow users to select two particular values in one field

satyanarayana_singamsetti
Contributor
February 5, 2025

Hi,

 

We are having one field with name ABC which is multi-select list filed.

It contains A1, A2, A3 and A4 values.

Is it possible to make somehow not to allow users to select A1 and A2 at a time?

Like using behaviour , groovy script?

 

Regards,

Satya

1 answer

0 votes
Bharat Kalia
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 5, 2025

Hey @satyanarayana_singamsetti - I am very new to groovy scripting but if you are looking to disable some options, I think this  Script might do the job. It will basically disable the options which might work in your case as well.

Thanks,

Bharat

satyanarayana_singamsetti
Contributor
February 11, 2025

Hi,

 

Thanks for the help.

But its not for one issue or issue type. 

Is it possible to add some script in behavior or workflow?

 

Regards,

Satya

Bharat Kalia
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 11, 2025

Hi @satyanarayana_singamsetti - If it's not for a particular issue type, how about you just go and "contexts and default value"  of that field and disable the ones you don't want to show? Maybe I am missing here something...? 

Multifield_disable.png

Thanks,

Bharat

satyanarayana_singamsetti
Contributor
February 11, 2025

HI,

When user select one value out of 5 values, one in remaining 4 values need to be disabled.

 

For ex: ABC field (multi select field) having t1, t2, t3, t4, t5

when user select t1, system should show t3, t4, t5 values and not t2 value.

and same when selected t2, t1 should not appear in the list

 

Regards,

Satya

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events