REST API to fetch JIRA issue(s) for a pull request

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Answered
    • None
    • Component/s: None
    • None

      As an admin writing scripts triggered on pull request events (via third party plugin "Pull Request Notification for Bitbucket"), I want the list of JIRA issues associated to the pull request.

      This information is shown in the Web UI, but is not available via the "rest/api/1.0/projects/<projectKey>/repos/<repositorySlug>/pull-requests/<pullRequestId>" endpoint. That endpoint returns information such as the source branch name, pull request summary, and pull request description, which could in theory be mined for JIRA issue ids; but getting the same results as Bitbucket displays in the Web UI would mean that the same logic be implemented in the scripts – which seems fragile and error prone to me. Better for Bitbucket to provide the values it has computed itself.

              Assignee:
              Unassigned
              Reporter:
              Deleted Account (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: