Hi answerers,
I ve got this little script to transition a parent issue:
if ( issue.isSubTask() ) {
parent = issue.getParentObject()
workflowTransitionUtil.setIssue(parent);
workflowTransitionUtil.setUsername(currentUser);
workflowTransitionUtil.setAction(11)
CommentManager commentManager = (CommentManager) ComponentManager.getComponentInstanceOfType(CommentManager.class);
commentManager.create(parent, currentUser, "Foo", true);
workflowTransitionUtil.validate();
workflowTransitionUtil.progress();
log.debug("finished")
}
This is run correctly in one instance of JIRA (6.2.5), but on a second instance (6.2.7) only the comment is created but the parent is not transitioned. The second instances has some more conditions on the transition, but as I can trigger it manually that shouldn t be the problem.
The log shows in both cases the "finished" message and no errors - I have no clue at the moment where to look further.
Any hint is appreciated!
Thanks in advance,
Thomas