Missing "author" field in api/issues/search rest API

Hello everyone,

We are using SonarQube Community Edition, version 25.1.0.

According to the documentation, responses for the endpoint:
api/issues/search?resolutions=WONTFIX&additionalFields=comments&createdInLast=1m
should contain the “author” field in the comments.

This was working until recently, but now the “author” field no longer appears in the response.

Switching to the new parameter issueStatuses=ACCEPTED (instead of the deprecated resolutions=WONTFIX) does not resolve the issue either.

Has anyone else experienced this, or does anyone know if this is a known issue or change in behaviour?

Many thanks in advance!

The author field is only returned for authenticated users, so make sure you’re logged into SonarQube or authenticating your API requests with a token.

If you’re not seeing author data in your API responses, it might also be because there’s missing SCM (source control management) information for the relevant lines—SonarQube pulls this data from your version control system. If you’re scanning code that’s not in a git repository, or if you performed a shallow clone, that information may not be available.

Indeed, it’s working as expected with an authenticated user!

Many thanks for your help.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.