I am using SonarQube 10.6 community edition. I have added tags in a project with unit or integration with an application name tag. So each project will have two tags either unit or Integration and an application name tag. I am using /api/components/search_projects? filter=tags%20IN%20(tag1) endpoint to get projects with a tag. I want to pass two tags, for example unit and application_name. So only projects with both tags will show in the response But it is not producing the expected results. I did not see anywhere if SonarQube supports filtering out projects with multiple tags.
I found post around that but it is from 2019. Search projects by tags using RestAPI
Hey there.
SonarQube’s built-in filtering (via the UI or the Web API) will only return all projects matching any of the tags specified. You’ll have to process the data after querying it in order to filter for projects that have both.