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

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

Dana Sep 03, 2013

1 answer

1 accepted

0 votes
Answer accepted
Charles O'Farrell Sep 04, 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 Sep 04, 2013

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

Charles O'Farrell Sep 04, 2013

Unfortunately not, no.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

1,098 views 13 15
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