Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

REST API to fetch Jira issue id of a particular commit in bitbucket sever

sagar udgir September 2, 2020

Is there a REST API to fetch Jira issue id of a particular Commit in Bitbucket sever , giving input as Commit ID.

However  following REST Resources Provided By: Bitbucket Server - JIRA Integration

Retrieves ,  JIRA issue keys that are associated with the commits in the specified pull request. As mentioned in , https://docs.atlassian.com/bitbucket-server/rest/5.2.2/bitbucket-jira-rest.html#idm45810156392688 

/rest/jira/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/issues.

1 answer

1 accepted

0 votes
Answer accepted
sagar udgir September 20, 2020

Got My answer.

JIRA issue id is part of same JSON , which is returned from bitbucket server for any particular commit. Preconditions are,

  • There should a valid connection between JIRA and Bitbucket established
  • A commit message should contain JIRA ID

Look for jira -key

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events