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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.