Portfolio with multiple criteria

Must-share information (formatted with Markdown):

  • SonarQube 8.4.2
  • Creating a portfolio with a regex and excluding tags
  • Editing via portfolio UI

Hi,
We are trying to configure a portfolio to match a regex, but to exclude those projects with a DEPRECATED tag. We want to keep the data for the deprecated projects for historical purposes, but don’t want them included in the portfolio. Is this possible?

Thanks

Hi Steven, welcome to the SonarSource Community!

Since you have to choose a single selection mode for the portfolio, there’s not really a way to mix multiple selection modes.

You might consider adding the “DEPRECATED” indicator to the project names and/or keys, which would then allow you to construct a single regexp that matches what you want included in the portfolio and eliminates the deprecated ones. It would probably also be friendly to users to see a visible indication regarding such projects, since tags are maybe a bit subtle for this.