Aggregate metrics from Projects to Portfolio level metric

Hello! I’m working on a SonarQube plugin where I’ve implemented a sensor to introduce an Integer metric that can be either 0 or 1. At the project level, I can view this metric in the “measures” tab under the assigned domain. However, my objective is to display this metric at the portfolio level, and I’m encountering challenges in achieving this. Despite successfully seeing the metric at the project level, it doesn’t appear in the “measures” tab of the portfolio.

To elaborate, let’s consider a portfolio with three projects. Two of them have this metric set to ‘1’, and the third one has it at ‘0’. My goal is to aggregate or display this metric at the portfolio level, showing the count or sum of ‘1’ values, which should be ‘2’. Any guidance on how to achieve this at the portfolio level would be greatly appreciated.

Hey there.

I saw you also raised a ticket with our Support Engineers – since this involves a more advanced Enterprise use-case, I’m going to let them handle it. :slight_smile: My gut tells me that the list of metrics that can be displayed in that Measures tab is locked down, but I don’t know for sure. When there’s a definitive answer, it would be great if somebody could follow-up on this thread!

1 Like