Confluence has been updated to version 6.15.9

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Snippet
 
if (replica.status.name == "Assigned to supplier" && issue.status.name != "Open" ) {
  // issue is assigned to supplier, so it should be opened
  workflowHelper.transition(issue, "autoopen")
} else if (replica.status.name == "Quoted" && issue.status.name != "Quoted" ) {
  // issue has been quoted on the remote side, so it needs to be moved into status quoted here also
  workflowHelper.transition(issue, "autoquote")
} else if (replica.status.name != "Assigned to supplier") {
  if (replica.resolution.name == "NULL") {
      log.info("Transitioning using 'autopending'")
      workflowHelper.transition(issue, "autopending") 
  } else {
      log.info("Transitioning using 'autoresolve'")
      workflowHelper.transition(issue, "autoresolve") 
  }
}


Notes

  • Ensure that the transition has no screens, validators and conditions enabled
  • Hide the transition for other users than the proxy users - check How to hide transitions from users.
  • The transition will only be triggered if it exists in the status of the local issue 
  • No error is raised if the transition doesn't exist, or fails to execute
  • the transition is applied once that all other issue changes have been applied.  So it doesn't matter where the workflowHelper.transition is called.

 

 

See also

Content by Label
showLabelsfalse
showSpacefalse
cqllabel = "workflowhandling"

...