Disclaimer: I'm not good with scripting, I've only done a few basic ones here and there. Please assume I don't even know basics!
I'm trying to use the "Hide Transition (JMWE add-on)" condition on a workflow transition, so that the transition isn't available when two conditions are met.
The issue type is "Task".
The custom field "Needs Review?" (12012) has the option "No" selected from a single-select list.
I've tried many methods I've found online, none quite exactly what I'm trying to do, and none working. This is the simplest form I've tried, so probably a good place to start.
def value = getCustomFieldValue("customfield_12012");
if (issue.get("issuetype").name == "Task"){
if (value == "No"){
return false;
}
}
return true;
Thank you!