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 Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

449 views 7 5
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