Groovy condition to check parent issue

Silviu Marchis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 12, 2015

I want to use Groovy as a condition for a post-function. The condition that should return true should be:

is parent issue an Bug issue type?

Something which be so simple is taking me too much

issue.getParentObject().issueTypeObject.name == "Bug"

returns

2015-08-12 16:52:37,503 ajp-apr-8009-exec-1320 WARN qxj8645 1012x8623253x12 99ciag 160.46.221.216 /secure/WorkflowUIDispatcher.jspa [jmwe.plugins.functions.CommentIssueFunction] Error while executing SetFieldValueFunction: groovy.lang.MissingMethodException: No signature of method: com.innovalog.jmwe.IssueProxy.getParentObject() is applicable for argument types: () values: []
groovy.lang.MissingMethodException: No signature of method: com.innovalog.jmwe.IssueProxy.getParentObject() is applicable for argument types: () values: []

1 answer

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2015

You're using the groovy field from the JMWE plugin. Please change the tags.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events