We have a huge monorepo with lots of committers. In our team we have a slack bot that shows daily stats and we want to add info about open PRs to its messages. How to fetch open PRs by several authors using api?
Documentation says that I can filter them by multiple users, but is seams like this method uses usernames as AND constraint.
If I understand you right you'd like to get the list of PRs of all the users from your team from a specific repository, without sending requests for each specific user (PR author).
According to REST API docs you can use the following end-point to get the list of pull-requests from the repository, then filter that by the users you care about on the client-side, because filter by usernames is additive (AND), not multiplicative (OR).
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.