Use default reviewers when creating a PR via REST API

XMLWordPrintable

    • 2

      When creating a PR via the REST API for a repo which has default reviewers, if the request does not explicitly specify reviewers for the PR, the default reviewers should be used.

      For example:

      POST /rest/api/1.0/projects/

      {projectKey}

      /repos/

      {repositorySlug}

      /pull-requests

      {
      "title": "...",
      "state": "OPEN",
      "fromRef": {
      "id": "refs/heads/source"
      },
      "toRef": {
      "id": "refs/heads/dest"
      },
      "locked": false
      }

      Note no reviewers specified in POST body, so default reviewers should be set.

              Assignee:
              Unassigned
              Reporter:
              David Scourfield
              Votes:
              8 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: