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

1 answer

1 accepted

0 votes
Answer accepted

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

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

Unfortunately not, no.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

43 views 1 0
View post

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