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

Does it possible to get pull-request author by REST API?

Dana
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2013

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 4, 2013

Hi Dana,

https://developer.atlassian.com/static/rest/stash/2.7.1/stash-rest.html#idp1611648

Which is just a GET on:

http://example.com/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}

In the JSON response you're looking for the 'author' node. You can also see that on the full pull-requests listing GET as well (ie without {pullRequestId}). You can't filter by them through REST if that's what you're asking. You might have to make your own REST resource to do that, like the stash-inbox-plugin:

Cheers,

Charles

Dana
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 4, 2013

Thanks. I mean that may be unpublished rest exists for such function.

cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 4, 2013

Unfortunately not, no.

TAGS
AUG Leaders

Atlassian Community Events