Details
-
Suggestion
-
Resolution: Fixed
-
None
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.