Skip to content

Commit

Permalink
Added the "applyPolicies" in the query
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalhcl-5960 authored Feb 29, 2024
1 parent c973eba commit 0b67326
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public JSONArray getNonCompliantIssues(String scanId) throws IOException, JSONEx
return null;

String request_url = m_authProvider.getServer() + String.format(API_ISSUES_COUNT, "Scan", scanId);
request_url +="?%24filter=Status%20eq%20%27Open%27%20or%20Status%20eq%20%27InProgress%27%20or%20Status%20eq%20%27Reopened%27%20or%20Status%20eq%20%27New%27&%24apply=groupby%28%28Status%2CSeverity%29%2Caggregate%28%24count%20as%20N%29%29";
request_url +="?applyPolicies=All&%24filter=Status%20eq%20%27Open%27%20or%20Status%20eq%20%27InProgress%27%20or%20Status%20eq%20%27Reopened%27%20or%20Status%20eq%20%27New%27&%24apply=groupby%28%28Status%2CSeverity%29%2Caggregate%28%24count%20as%20N%29%29";
Map<String, String> request_headers = m_authProvider.getAuthorizationHeader(true);
request_headers.put("Content-Type", "application/json; charset=UTF-8");
request_headers.put("Accept", "application/json");
Expand Down

0 comments on commit 0b67326

Please sign in to comment.