Hi,
I have the code:
MutableIssue issue = issue as MutableIssue
def currentUser = com.atlassian.jira.component.ComponentAccessor.getJiraAuthenticationContext().getUser()
WorkflowTransitionUtil workflowTransitionUtil = ( WorkflowTransitionUtil ) JiraUtils.loadComponent( WorkflowTransitionUtilImpl.class );
workflowTransitionUtil.setIssue(issue);
workflowTransitionUtil.setUsername(currentUser.name);
workflowTransitionUtil.setAction (251)
if (workflowTransitionUtil.validate()) {
println("validacion OK!!!!!!")
workflowTransitionUtil.progress();
}
And not working not error
Help Please
you want:
if (! workflowTransitionUtil.validate().hasAnyErrors()) { // ... all good }
.validate() returns an error collection that you can look at to see what the problem is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.