I guess this is in a C# context? If so, then your best bet is probably to set an inclusion for Payments/Debit/Credit/**/*, making sure to start your inclusion path from where analysis kicks off.
Hi Ann thanks for your reply maybe i didnt explain it to clear. Would this cover putting the scan results in this portfolio… So i am trying to get the project scan results to show up in for this example
Payments>DIGITAL>(scannedapp)
Okay! I didn’t understand what you meant by “scans to the proper portfolio”.
The automatic options are to include projects in that Credit portfolio by name/key regex, or by project tags. So unless all the projects under Debit have a common substring in their names or keys, I don’t think this is going to be automatable natively within SonarQube.
Your best bet is to script this using the Web APIs.
The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.