Fixing JQL to allow for label-tracker to have custom field with spaces
@@ -69,7 +69,7 @@ public class JiraService {
String jql;
/*Namespace/Repo/Branch provided*/
if(!ScanUtils.empty(request.getNamespace()) && !ScanUtils.empty(request.getRepoName()) && !ScanUtils.empty(request.getBranch())) {
- jql = String.format("project = %s and issueType = \"%s\" and (%s = \"%s\" and %s = \"%s:%s\" and %s = \"%s:%s\" and %s = \"%s:%s\")",
+ jql = String.format("project = %s and issueType = \"%s\" and (\"%s\" = \"%s\" and \"%s\" = \"%s:%s\" and \"%s\" = \"%s:%s\" and \"%s\" = \"%s:%s\")",
request.getBugTracker().getProjectKey(),
request.getBugTracker().getIssueType(),
jiraProperties.getLabelTracker(),
@@ -83,7 +83,7 @@ public class JiraService {
);
}/*Only application provided*/
else if(!ScanUtils.empty(request.getApplication())){
- jql = String.format("project = %s and issueType = \"%s\" and (%s = \"%s\" and %s = \"%s:%s\")",
+ jql = String.format("project = %s and issueType = \"%s\" and (\"%s\" = \"%s\" and \"%s\" = \"%s:%s\")",
request.getBugTracker().getProjectKey(),
request.getBugTracker().getIssueType(),
jiraProperties.getLabelTracker(),
