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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Edited

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

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,927 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you