Can see issue via Web UI but cannot get issue via Web API

Enterprise Edition Version 9.9 (build 65466)

I am trying to fetch an issue via the Web API. I can see the issue via the UI, but calling returns {"total":0,"p":1,"ps":100,"paging":{"pageIndex":1,"pageSize":100,"total":0},"effortTotal":0,"issues":[],"components":[],"facets":[]}. I have anonymized the issue key in this post but I am 100% sure I use the correct key. I use a personal access token for auth.

For some issues, there are no problems and I get the issue from the Web API, for others, I get an empty result. Any idea as to what I am doing wrong?

Hey there.

Just to make sure – where are you getting the issue ID from?

An Issue ID is meaningless outside of your specific SonarQube instance (and contains no identifying information), so it’s probably safe to not redact.