I am trying to find a way to get a list of all Sonarqube rules from a particualar Profile complete with Descriptions and export it as an Excel, csv or xml. I am able to export a list to xml and convert to excel using the Permalinks option under Quality Profiles but this only provides details on the priorty,key, language and profile name associated with each rule and not anything further like the descriptrion of the rule.
I found the following question on the forum which outlines the steps to download the xml file with the details listed but not the description as required
Export list of coding rules from Sonarqube
I also discovered this question which also asks the same question on how to obtain Descriptions on each rule but was unable to get the details required
sonar quality profile rule export with descrption
I was able to run the command provided in the previous link to obtain some required results by referencing the repositorykey and key_name from the xml obtained under permalinks in the Quality Profiles section
curl -X GET -v -u admin:admin "http://[Sonarservername]:[port]/api/rules/show?key=[repositorykey]:[key_name]" --output file.xml
This command provides the result required (Description of the rule) but there is a requirement to change the repositorykey adn key_name for each rule. This is not feasible as I need the description for over 550 rules
What is requried to get description/rule description text?
Please help.