Forums

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

Scriptrunner validator with multiple optional values

Hadas Hamerovv
Contributor
September 23, 2021

Hi,

I wish to add a transition validator that allows transition for two issue types. When I try the following it fails

issue.issueType.name in ("Bug", "Enhancement")

Of course I can use == and OR but I wonder if there is a way to use the 'in' term to solve this?

1 answer

0 votes
Suvarna Gaikwad
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 23, 2021

@Hadas Hamerovv Yes this is possible using in term. Please try this.

issue.issuetype.name in ["Bug", "Enhancement"]

Hadas Hamerovv
Contributor
September 23, 2021

That was my first try. But maybe I used ‘ instead ‘ of “. Will try again

Suggest an answer

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

Atlassian Community Events