ScriptRunner validator providing incorrect test results

alexmears July 14, 2020

Bug found in ScriptRunner workflow validator.

CURRENTLY

We have built a ScriptRunner validator for our workflow.

The validator, when tested against one of our issues PD-6480 says the issue will pass.

validator says it would pass.png

Issue

However, when actually trying to move PD-6480 through the workflow the issue will not pass as the validator fails.

The cause was found to be

issue.customfield_10035.value != ""

 It should have been 

issue.customfield_10035 != ""

but the test TEST incorrect shows this as failing, when it should be passing.

customfield_10035 is a text field, and does not have a .value attribute, but scriptRunner validates this field as if it does.

0 answers

Suggest an answer

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

Atlassian Community Events