Hey all,
I have a post-function that creates a sub-task whenever a specific sub-task resolves. I wish to add a condition based on a custom field, but I am not succeeding.
def cf1 = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_id")
def cfv1 = issue.getCustomFieldValue(cf1)
if (issue.isSubTask() &&
issue.summary.contains("text") &&
cfv1 == "Yes")Above doesn't result in errors, but neither results in a created sub-task when the value is Yes. Logs are also empty.
I've also tried:
issue.customfield_11301 == "Yes"
[Static type checking] - No such property: customfield_11301 for class: com.atlassian.jira.issue.MutableIssue
What am I missing here?
Thanks in advance.