It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Restrict version picker to select single value for affect version field

1. As a user, for affect/s version field I should be able to add only single value (choice) for this field.

Currently it is allowing more than one options.

2. As a user I should not be able to create version. How to restrict it?

2 answers

0 votes


If you have Scriptrunner, you could do it with the behaviour functionality (available only for Jira Server/Data Center) or custom validators.

Hi @Alexey Matveev _cPrime_ , I have the same requirement as mentioned above and we are using Scriptrunner (behaviour) app. Could you please provide more details to configure this behaviour?


Please use this script in the field server-side script:

def field = getFieldById(getFieldChanged())

def version = field.getValue() as Collection

if (version.size() > 1)
    field.setError("Version/s can only be one value.")




John Chin

Hi @John Chin , That worked. Thanks for helping.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you