There are two issue types in my epic. Now I want to work on the workflow of these two issue types. When all the issue of a certain problem type reach a certain state, the epic workflow will reach a certain state correspondingly. The following is the statement I wrote in the condition of the event after the workflow transformation, but I report an error every time. Can someone help me? Thank you very much
There was an error during the execution of your script against issue SAMPLESS-334
java.lang.NullPointerException: Cannot get property 'issueType' on null object
org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60) org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:190) org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:46) org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:298) script_9b747e64a039e346c8f58bcf661f3f26.run(script_9b747e64a039e346c8f58bcf661f3f26.groovy:6)
Hi @wangzehong ,
the error is happening because you're going one index too far in your for loop:
But your code could be much simpler:
it.issueType.name != "需求任务" || it.status.name=="设计待内审"
If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events