Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Cadet 1st Class
Cadet 1st Class
228 views

API issue count

Hello,

I just wanted to retrieve the count of critical and High findungs of an application version via API.

First idea was to use

&q=friority:"Low"

 

https://sscurl.net/api/v1/projectVersions/10001/issues?start=0&limit=200&q=friority%3A%22Low%22&qm=issues&fields=friority&showhidden=false&showremoved=false&showsuppressed=false&showshortfilenames=false

 

Here I'm getting an error

{
  "message": "Error parsing search string, Unknown Modifier: friority",
  "responseCode": 400,
  "errorCode": -1
}

With likelihood:2 this is working..

 

https://sscurl.net/api/v1/projectVersions/10001/issues?start=0&limit=200&q=likelihood%3A2&qm=issues&showhidden=false&showremoved=false&showsuppressed=false&showshortfilenames=false

Any idea why this error occours or maybe better way to retrieve the count for those findindings (crit + high)?

We're using SSC in version 19.10.

0 Likes
2 Replies
Commodore Commodore
Commodore

If you use Audit Workbench, you can load an .fpr file, click Advanced... in the search bar, and create your search query. Copy that and use that in your api call. 

You want to use:

[fortify priority order]:"low"

Cadet 1st Class
Cadet 1st Class

You're so right. Thanks.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.