Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
1
-
Description
Summary
At the moment, Jira allows the creation of new workflows via the Rest API endpoint: Create workflow. When creating post functions in the new workflow using the API endpoint, we notice that the order of some of the post functions does not follow the same order as provided in the request data payload.
Example:
If the workflow post function in the API call has the below order:
"postFunctions":[ { "type": "AssignToCurrentUserFunction" }, { "type": "ClearFieldValuePostFunction", "configuration": { "fieldId": "components" } } ]
However, in the UI, we notice that the order of the post function is changed and the clear field value function has the first order followed by the "Assign to the current user" function.
Current behavior
The reordering of post functions via the create workflow POST API call is expected behavior. Certain functions are re-ordered around the system post functions to reduce the risk of end-users hitting known configuration problems.
Suggestion
Allow the re-ordering/sorting of workflow post functions via API or retain the order of post functions that are specified in the workflow create API call.