The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Script Runner - Customer Validator Issue - cfvalues is undeclared.

Tom
Contributor
January 17, 2020

Hi All,

I'm trying to get a custom Script Validator to work and keep getting the error cfvalues is undeclared.

Can anyone advise?

Validator if have is below.

 

import com.atlassian.jira.issue.CustomFieldManager

import com.atlassian.jira.issue.CustomFieldManager

// Check if Change type is not standard

if (cfValues['Type of Change']?.value != 'Standard') {

// Do some other checks

}

// Do nothing

 

 

 

 

 

 

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.