Guest User

Untitled

a guest
Dec 9th, 2019
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import com.atlassian.jira.component.ComponentAccessor
  2. import org.apache.log4j.Level
  3. import org.apache.log4j.Logger
  4.  
  5. log = Logger.getLogger("com.onresolve.confluence.groovy")
  6. log.setLevel(Level.DEBUG)
  7.  
  8. def issue = "QQ-204"
  9. def workflow = ComponentAccessor.getWorkflowManager().getWorkflow(issue).getDisplayName()
  10. log.debug(workflow)
  11.  
  12. 2019-12-09 17:00:11,540 ERROR [common.UserScriptEndpoint]: Script console script failed:
  13. java.lang.NullPointerException: Cannot invoke method getDisplayName() on null object
  14. at Script485.run(Script485.groovy:9)
RAW Paste Data