Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9942

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

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Answered
    • None
    • None
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      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.

              Unassigned Unassigned
              0f874aab-fb4e-4fbd-829b-2de222f251da Deleted Account (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: