Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-15334

Add endpoint that extracts all project issues

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.1
    • Component/s: Issues
    • Labels:
      None
    • Edition:
      Enterprise
    • Production Notes:
      None

      Description

      Create a new api/projects/export_findings endpoint that allows to fetch all issues and hotspots for a given project and a given branch.

      It should take 2 parameters:

      • project key, mandatory
      • branch or pull request key, optional. When not specified, the main branch findings will be returned

      This endpoint should be available in EE+ and only for admins.

      Response should include

      • for issues:
        • issue key
        • project, directory and file name
        • line number
        • message
        • type and severity
        • status and resolution
        • author
        • assignee
        • creation and last update time
        • rule reference
        • effort
        • tags
        • comments
      • for hotspots:
        • hotspot key
        • project, directory and file name
        • line number
        • message
        • security category
        • vulnerability probability
        • status
        • author
        • assignee
        • creation and last update time
        • rule reference
        • comments

      The query will be performed directly on the DB (and not on ES).

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pierre.guillot Pierre Guillot
              Reporter:
              belen.pruvost Belén Pruvost
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: