Hello,
I’m looking for a RestAPI with which I provide project tag as an input & all projects belonging to that tag will get listed.
I can see api/project_tags/search
is there, but it only provides list of tags in sonarqube & not any project level data.
Any suggestions?
Thank you
agabrys
(Adam Gabryś)
2
Hello,
You should use search_projects?filter=tags
:
/api/components/search_projects?filter=tags%20IN%20(tag1)
/api/components/search_projects?filter=tags%20IN%20(tag1%2C%20tag2)
/api/components/search_projects?filter=tags%20IN%20(tag1%2C%20tag2%2C%20tag3)
Just in case:
%20
= " " (space character)
%2C%20
= ", " (colon and space character)
Cheers
1 Like
@agabrys is there any filter to get all passed/failed/not analyzed projects?