Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-80800

Ability to retain the order of post-functions when creating a workflow via Rest API

    XMLWordPrintable

Details

    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            b678926ca497 Bopanna
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: