How to use REST API to check whether issue tracker of a repo is set to private?

Praveen Yalagandula
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2024

For a public repository, bitbucket.org UI allows setting the issue tracker to private. Is there a REST API end point to either set or at least check if the issue tracker is set to private for a repository?

Repository resource only has has_issues boolean but doesn't have any indicator to show if the associated issue-tracker is set to private.

Ref: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-get

1 answer

1 accepted

2 votes
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2024

Hi Praveen,

Unfortunately - it is not possible to interact with the issue tracker in this manner via our API, we have had a few feature requests closed due to inactivity over the years - for example (see feature request policy):

In full transparency, I don't expect a feature for this to be worked on any time soon based on the traction of previous FR tickets. I would suggest checking the status in the UI, or switching to JIRA for issue management/tracking.

Regards,

- Ben (Bitbucket Cloud Support)

 

Praveen Yalagandula
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 5, 2024

Hi Ben,

Thanks for your detailed response.

Even if setting the flag is not possible, is it possible to just check via REST API whether the issue tracker is set to private?

Context: Our users use UI to set the flag. However our automation at this point needs to simply check if the flag is set to private or not.

 

Thanks,

Praveen

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 5, 2024

Hi Praveen,

Unfortunately not - this value is not recorded in the /2.0/repositories API endpoint which houses both repositories and the issue tracker - I double checked this just to make sure.

I have raised a feature request on your behalf with our developers, please feel free to Watch this for future updates and Vote for it to improve its visibility with regard to customer demand:

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events