Cannot create and transition issues using the /rest/api/3/issue/bulk REST API endpoint

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      According to the documentation to Bulk create issues via REST API (POST /rest/api/3/issue/bulk), you should be able to transition them as well but this is not working.

      The issues are correctly created, no error returned, but they do not transition to the given status.

      Steps to Reproduce

      1. Create a project (e.g. TEST)
      2. Send a POST request to the /rest/api/3/issue/bulk endpoint in order to bulk create and transition issues using a body like the below one:
        {
          "issueUpdates": [
            {
              "transition": {
                "id": "11"
              },	
              "fields": {
                "project": {
                  "key": "TEST"
                },
                "summary": "Test Bulk Create REST 2",
                "issuetype": {
                  "name": "Task",
                  "subtask": false
                },
                "priority": {
                  "name": "High"
                }
              }
            },
            {
              "transition": {
                "id": "11"
              },		
              "fields": {
                "project": {
                  "key": "TEST"
                },
                "summary": "TEST bulk creation REST API ",
                "issuetype": {
                  "name": "Task",
                  "subtask": false
                },
                "priority": {
                  "name": "Medium"
                }
              }
            }
          ]
        }
        

      Expected Results

      The issues are crated and transitioned to the desired status

      Actual Results

      The issues are created. No error is returned, but there was no transition. The issues are still in their initial status.

      Workaround

      Transition the issues after they have been created by using the Transition issue (POST /rest/api/3/issue/{issueIdOrKey}/transitions) endpoint

            Assignee:
            Unassigned
            Reporter:
            Dario B
            Votes:
            7 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: