Revert "[DockerImageScanner] Use Jira projectKey"
This reverts commit ea6f13d9bca6554758147950d5bd63a9d8f2036c.
Reason for revert: The behavior has changed to how it was before.
Related-PROD: https://mirantis.jira.com/browse/RE-594
Change-Id: I046b789533ef98b556fdaa3a8317379c757913ab
diff --git a/src/com/mirantis/mk/DockerImageScanner.groovy b/src/com/mirantis/mk/DockerImageScanner.groovy
index c65e57d..8178564 100644
--- a/src/com/mirantis/mk/DockerImageScanner.groovy
+++ b/src/com/mirantis/mk/DockerImageScanner.groovy
@@ -136,7 +136,7 @@
return defaultJiraAffectedVersion
}
- def search_api_url = "${cred.description}/rest/api/2/issue/createmeta?projectKey=PRODX&issuetypeNames=Bug&expand=projects.issuetypes.fields"
+ def search_api_url = "${cred.description}/rest/api/2/issue/createmeta?projectKeys=PRODX&issuetypeNames=Bug&expand=projects.issuetypes.fields"
def response = callREST("${search_api_url}", "${cred.username}:${cred.password}", 'GET')
def InputJSON = new JsonSlurper().parseText(response["responseText"])
def AffectedVersions = InputJSON['projects'][0]['issuetypes'][0]['fields']['versions']['allowedValues']