Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-19366

WorkflowManager should expose a method for updating draft workflows without audit

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      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.

      Attachments

        Activity

          People

            dylan@atlassian.com Dylan Etkin [Atlassian]
            tim@atlassian.com TimP
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: