Forums

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

Error message should display if user select more than 5 options from multi select drop down Field

PLaksh11
Contributor
June 26, 2025

Hello Community,

We have multi select drop down custom field which has more than 10 values inside it.

When user selects more than 6 values then it should throw the error instantly saying that "you cant select more than 6 values"

We can achieve this using JMEW validators. but validators works only when we do the transition.

But, We want to display the error message As soon as user selects more than 6 options.

We don't want to wait until user do the transition then showing the error message.

3 answers

0 votes
Gor Greyan
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.
June 28, 2025

Hi @PLaksh11

If you have ScriptRunner, you can achieve this by using Behaviours in ScriptRunner.

If you have that:

Go To: ScriptRunner --> Behaviours
Create a new behavior and map it to your project + issuetype
Add the following script.

def field = getFieldByName("Your Multi-Select Field")
def selectedValues = field.getValue() as List

if (selectedValues?.size() > 6) {
field.setError("You can't select more than 6 values.")
} else {
field.clearError()
}

Let me know if you succeed.

PLaksh11
Contributor
June 30, 2025

Hi @Gor Greyan 

Thanks for the Reply.

The code is not working in Jira cloud. Also i found that real time field validation is not possible. we can get error only doing transition.

Gor Greyan
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.
June 30, 2025

Hi @PLaksh11
Thanks for the answer.

Yes, you are right, I have also reviewed and found out, that it is possible only in transition.

0 votes
Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 27, 2025

Hey @PLaksh11

We don't have a way to instantly show the error message when a field is updated as we don't have a field level validation with the native Jira functionalities. You may explore the possibility of an automation rule to revert the field to its previous value if more than 5 selections are made.

A similar discussion here: https://community.atlassian.com/forums/Jira-questions/Automation-to-count-specific-selections-in-multi-select-field/qaq-p/2702711

Thanks!

0 votes
Dilip
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 27, 2025

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events