I am checking if a custom field has a certain value.
I am using JMWE
originalIssue.getAsString("customfield_23400") == "Add New Vendor"
The custom field is a dropdown.
I can also use scriptrunner if its easier.
Hi @Jacob francois ,
Example for SR https://scriptrunner.adaptavist.com/4.2.0.2/jira/recipes/workflow/validators/simple-scripted-validators.html
B.R.
I tried :
cfValues['My Single Select']?.value == "Some value"
and still doesn't work. I get errors.
cfValues is only for ScriptRunner, and afaik doesn't work like that. In JMWE for Jira Server, your first attempt was correct except you probably meant to use "issue", not "originalIssue" (which contains the values before the transition):
issue.getAsString("customfield_23400") == "Add New Vendor"
@David Fischer I tried it with issue and still doesn't work.
It looks like you're new here. Sign in or register to get started.