Hi experts,
I have a problem on my following scripted validator.
I want to prevent transition if value of custom field "Origin" is different to "IVV".
The script always return false even if value of my single select is equals to "IVV"
Thank you for your help
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.IssueManager
import com.atlassian.jira.issue.Issue
def issueManager = ComponentAccessor.getIssueManager()
def cfManager = ComponentAccessor.getCustomFieldManager()
def OriginCf = cfManager.getCustomFieldObject("customfield_10404")
def OriginValue = issue.getCustomFieldValue(OriginCf)
log.warn("OriginValue = "+ OriginValue)
// this return IVV
if (OriginValue.equals("IVV"))
{
return true
}
else
{
return false
}