SonarQube icon

SonarQube

Consume SonarQube and SonarCloud Web API

Actions8

Issue → Search

AI-generated

Overview

This node interacts with the SonarQube and SonarCloud Web API to search for issues within projects. It allows users to filter issues based on various criteria such as branch, component keys, organization, pull request ID, resolution status, severities, statuses, and issue types. It supports returning all matching issues or limiting the number of results. This node is useful for developers and quality assurance teams who want to programmatically retrieve and analyze code quality issues detected by SonarQube or SonarCloud.

Use Case Examples

  1. A developer wants to retrieve all open critical and blocker issues for a specific project branch to prioritize fixes.
  2. A QA team needs to fetch a limited number of unresolved security hotspot issues across multiple components for a security audit.

Properties

Name Meaning
Return All Whether to return all matching issues or only up to a specified limit.
Limit Maximum number of issues to return when 'Return All' is false.
Filters Collection of filters to narrow down the search results based on issue attributes.

Output

JSON

  • issues - Array of issue objects matching the search criteria.

Dependencies

  • Requires an API key credential for SonarQube or SonarCloud to authenticate requests.

Troubleshooting

  • Common issues include authentication failures due to invalid or missing API credentials. Ensure the API key is correctly configured.
  • If no issues are returned, verify that the filter parameters are correct and that issues matching the criteria exist in the SonarQube or SonarCloud instance.
  • API rate limits or network connectivity issues may cause request failures; check network access and API usage limits.

Links

Discussion