WorkflowManager should expose a method for updating draft workflows without audit

XMLWordPrintable

      The WorkflowManager component has a method for updating workflows without an associated username:

      /**
      * This method will save the workflow and it will not affect the updatedDate and
      * updatedAuthorName meta attributes of the workflow. This should only ever be
      * invoked by system operations such as upgrade tasks. All other saves should use
      * the method {@link #updateWorkflow(String, JiraWorkflow)}
      **/
      void saveWorkflowWithoutAudit(JiraWorkflow workflow)
      

      However there is no corresponding mechanism for updating draft workflows. This makes writing upgrade tasks a PITA, as you have to supply a stub username that is logged in the audit trail and causes warnings in the logs.

              Assignee:
              Dylan Etkin [Atlassian]
              Reporter:
              TimP
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: