The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

CODEOWNERS not working for PRs created through API

Pierre-Julien Houde
August 19, 2026

After a bit of fiddling with the CODEOWNERS file, I managed to get it to work for pull requests created through the web UI, but it's not being respected when creating pull requests through the REST API (at least not when using an access token). Is that expected, is it a bug or did I do something wrong?

If this is normal behavior, it should at least be mentionned in the documentation.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Pierre-Julien Houde
August 25, 2026

OK, so when I went to open the support ticket, the AI generated answer was that this is a known problem and that there is already a Jira issue about it.

https://jira.atlassian.com/browse/BCLOUD-23663

I should have checked there first, sorry about that.

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 20, 2026

Hey @Pierre-Julien Houde 

Welcome to the community!

Thanks for reporting this. To help us investigate, could you please confirm whether the same CODEOWNERS rule adds reviewers when a pull request is created through the Bitbucket web UI, but not when it is created through the REST API or otherwise?

Regards,
SYahrul

Pierre-Julien Houde
August 21, 2026

Hi Syarhul,

Yes, I confirm that this is the observed behavior, see screenshots below.

Edit: This is two PR created from the exact same branch, targeting the same ref for main. The first one has been created through the API and doesn't have the specified reviewer, the second one is from the web UI and the reviewers was automatically added like it's supposed to.

bitbucket_codeowner_PR_API.jpgbitbucket_codeowner_PR_webUI.jpg

Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2026

Hi @Pierre-Julien Houde 

Noted. Could you please submit a support ticket through our support portal and include the affected repository along with the codeowners configuration?

This information will help us investigate the issue further. Since this is a public forum, understanding your codeowner config is essential for us to reproduce and continue the investigation.

Regards,
Syahrul

Pierre-Julien Houde
August 24, 2026

Hi Syahrul,

Sure, I will open a support ticket for this.

Thanks for you help.

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events