How can i get commits info on a issue via API REST? (CLOUD version)

Hi everyone!

I am trying to develop a cloud app that access "Development" area (commits, branches, etc...)

I've locate this URL in order to retrieve repos: 
https://picaso.atlassian.net/rest/bitbucket/latest/repositories (OK)

But I am not be able to access so far: 
https://picaso.atlassian.net/rest/bitbucket/latest/repositories/humoib/test/commits (FAIL)

I couldn't read any documentation about this REST API... Could you please help me?

Thanks a lot,

--Hugo

1 answer

0 votes

Hi Hugo,

The Rest calls on the JIRA side provide information about pull requests. Take a look at the post Solved:  Get commits info of a JIRA issue using REST API:

If you want to retrieve detailed information you need to use /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/commits on stash side. More information availbale here https://developer.atlassian.com/static/rest/stash/3.0.1/stash-rest.html#idp266256

Cheers,

Branden

Hi Branden,

This link comes from Stash. It's not working... not for me.

In a Jira Software (cloud version) is possible to get all the repos or connected applications?

https://<site>.atlassian.net/rest/api/1.0/projects/SW/repos

Get all the applications listed on "Connected developer tools" and then commits related.

 

Thanks a lot!

--Hugo

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,149 views 13 19
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot