It says "Only execute this post-function if the following Groovy expression returns true"
I am trying write a script to change the assignee based on what a user chooses in a custom field, but I am not having any luck. I figure my script is wrong and I cannot find any information to help my particular case. I had something like this:
if(issue.get("Issue Source").getName() == "Agent Portal"){
return true;
} else {
return false;
}
I got it to work doing this:
if(issue.get("customfield_18173")
== "Desktop" || issue.get("customfield_18173") ==
"Support"){
return true;
} else {
return false;
}
|
However, I want this to happen on creation, so I put it on the Create transition (the first one), but it is not working.