From f9a419e33bb059ba7c5c04f2677943b4749b97a2 Mon Sep 17 00:00:00 2001 From: Omendra Kumar Pandey Date: Thu, 7 Oct 2021 00:14:03 +0530 Subject: [PATCH 1/2] Update RallyValidate.js --- lib/RallyValidate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/RallyValidate.js b/lib/RallyValidate.js index cb3f8b6..6fc21c5 100644 --- a/lib/RallyValidate.js +++ b/lib/RallyValidate.js @@ -883,7 +883,7 @@ class RallyValidate { scope: { workspace: '/workspace/' + config.rally.workspace }, - fetch: ['FormattedID', 'Name', 'Description', 'ScheduleState', 'Project', 'Connections'], + fetch: ['FormattedID', 'Name', 'Description', 'ScheduleState', 'State' 'Project', 'Connections'], query: queryUtils.where('FormattedID', '=', githubArtifact.number), requestOptions: {} }) @@ -901,7 +901,7 @@ class RallyValidate { statusIcon = ':heavy_exclamation_mark:' } else { const artifact = queryResponse.Results[0] - status = artifact.ScheduleState + status = artifact.ScheduleState ? artifact.ScheduleState : artifact.State projectName = artifact.Project._refObjectName validProject = (config.rally.projects.includes('Any') || config.rally.projects.includes(projectName)) isValid = (config.rally.states.includes(status) && validProject) From 68e3294f044999748fdf61cb163ac60531a03ee8 Mon Sep 17 00:00:00 2001 From: Omendra Kumar Pandey Date: Thu, 7 Oct 2021 14:17:44 +0530 Subject: [PATCH 2/2] Update RallyValidate.js --- lib/RallyValidate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RallyValidate.js b/lib/RallyValidate.js index 6fc21c5..a7d0f60 100644 --- a/lib/RallyValidate.js +++ b/lib/RallyValidate.js @@ -883,7 +883,7 @@ class RallyValidate { scope: { workspace: '/workspace/' + config.rally.workspace }, - fetch: ['FormattedID', 'Name', 'Description', 'ScheduleState', 'State' 'Project', 'Connections'], + fetch: ['FormattedID', 'Name', 'Description', 'ScheduleState', 'State', 'Project', 'Connections'], query: queryUtils.where('FormattedID', '=', githubArtifact.number), requestOptions: {} })