mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
fix(fortify): suppressed issues got "Unknown" category and state (#3899)
This commit is contained in:
parent
39a5ca04b1
commit
604764998f
@ -637,7 +637,8 @@ func (sys *SystemInstance) GetReportDetails(id int64) (*models.SavedReport, erro
|
||||
// GetIssueDetails returns the details of an issue with its issueInstanceId and projectVersionId
|
||||
func (sys *SystemInstance) GetIssueDetails(projectVersionId int64, issueInstanceId string) ([]*models.ProjectVersionIssue, error) {
|
||||
qmStr := "issues"
|
||||
params := &issue_of_project_version_controller.ListIssueOfProjectVersionParams{ParentID: projectVersionId, Q: &issueInstanceId, Qm: &qmStr}
|
||||
showSuppressed := true
|
||||
params := &issue_of_project_version_controller.ListIssueOfProjectVersionParams{ParentID: projectVersionId, Q: &issueInstanceId, Qm: &qmStr, Showsuppressed: &showSuppressed}
|
||||
params.WithTimeout(sys.timeout)
|
||||
result, err := sys.client.IssueOfProjectVersionController.ListIssueOfProjectVersion(params, sys)
|
||||
if err != nil {
|
||||
@ -650,7 +651,8 @@ func (sys *SystemInstance) GetIssueDetails(projectVersionId int64, issueInstance
|
||||
func (sys *SystemInstance) GetAllIssueDetails(projectVersionId int64) ([]*models.ProjectVersionIssue, error) {
|
||||
var limit int32
|
||||
limit = -1
|
||||
params := &issue_of_project_version_controller.ListIssueOfProjectVersionParams{ParentID: projectVersionId, Limit: &limit}
|
||||
showSuppressed := true
|
||||
params := &issue_of_project_version_controller.ListIssueOfProjectVersionParams{ParentID: projectVersionId, Limit: &limit, Showsuppressed: &showSuppressed}
|
||||
params.WithTimeout(sys.timeout)
|
||||
result, err := sys.client.IssueOfProjectVersionController.ListIssueOfProjectVersion(params, sys)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user