Forums

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

Trying to create a scriprunner validator for components and "affects version" but it does not work

Hadas July 19, 2022

1. I have this validator for components but it results in 'False' all the time

issue.components*.name.contains('Mobile App')

2. A second question is: I see that issue.fixVersion is a smart value so presume that issue.affectsVersion != null is the correct syntax however if someone knows how to validate that the field affectsVersion is not null please let me know.

 

 

1 answer

1 accepted

1 vote
Answer accepted
Hadas July 19, 2022

Ok, Solved it. Leaving the answer here for the records.

!issue.components[0].name.includes("Mobile App") || issue.versions[0] != null

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