diff --git a/jira.sh b/jira.sh index d8b54eaa..7c74b866 100755 --- a/jira.sh +++ b/jira.sh @@ -6,14 +6,15 @@ set -e -customfield_automatedTestResults=17112 -customfield_componentLeadReview=15810 -customfield_currentlyInIntegration=10211 -customfield_integrationDate=10210 -customfield_integrationPriority=12210 -customfield_integrator=10110 -customfield_pullFromRepository=10100 -customfield_tester=10011 +customfield_automatedTestResults="Automated test results" +customfield_componentLeadReview="Component Lead Review" +customfield_currentlyInIntegration="Currently in integration" +customfield_integrationDate="Integration date" +customfield_integrationPriority="Integration priority" +customfield_integrator="Integrator" +customfield_pullFromRepository="Pull from Repository" +customfield_tester="Tester" + filter_candidatesForCLR="Weekly: Candidates for CLR (not held)" filter_candidatesForIntegration="Weekly: Candidates for Integration (not held)" diff --git a/tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls_sdev/query.sh b/tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls_sdev/query.sh index f8623f46..24751a50 100755 --- a/tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls_sdev/query.sh +++ b/tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls_sdev/query.sh @@ -1,7 +1,7 @@ ${basereq} --action getIssueList \ --jql "project = 'Moodle' \ AND issue IN (${issueslist}) \ - AND ${customfield_pullFromRepository} ~ 'integration/security-testing' \ + AND \"${customfield_pullFromRepository}\" ~ 'integration/security-testing' \ AND level IS NOT EMPTY \ ORDER BY priority DESC, votes DESC, 'Last comment date' ASC" \ --outputFormat 101 \ diff --git a/tracker_automations/close_tested_issues/close_tested_issues.sh b/tracker_automations/close_tested_issues/close_tested_issues.sh index 21e86fa9..1163d5ae 100755 --- a/tracker_automations/close_tested_issues/close_tested_issues.sh +++ b/tracker_automations/close_tested_issues/close_tested_issues.sh @@ -62,8 +62,8 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do --issue ${issue} \ --transition "Mark as committed" \ --resolution "Fixed" \ - --field "customfield_${customfield_currentlyInIntegration}=" \ - --field "customfield_${customfield_integrationDate}=${altdate}" \ + --field "${customfield_currentlyInIntegration}"= \ + --field "${customfield_integrationDate}"="${altdate}" \ --comment "${altcomment}" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}" done diff --git a/tracker_automations/component_leads_integration_mover/component_leads_integration_mover.sh b/tracker_automations/component_leads_integration_mover/component_leads_integration_mover.sh index 798b26b0..67cd36ae 100755 --- a/tracker_automations/component_leads_integration_mover/component_leads_integration_mover.sh +++ b/tracker_automations/component_leads_integration_mover/component_leads_integration_mover.sh @@ -167,7 +167,7 @@ jq -c '.[]' ${resultfile} | while read -r json; do ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_componentLeadReview}=No" + --field "${customfield_componentLeadReview}"=No else # CLR. Real transition to Waiting for CLR. ${basereq} --action transitionIssue \ diff --git a/tracker_automations/continuous_manage_queues/lib.sh b/tracker_automations/continuous_manage_queues/lib.sh index 225b11b5..6810bfa2 100755 --- a/tracker_automations/continuous_manage_queues/lib.sh +++ b/tracker_automations/continuous_manage_queues/lib.sh @@ -100,14 +100,14 @@ function run_A2() { # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes" + # --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_currentlyInIntegration}=Yes" \ - --field "customfield_${customfield_componentLeadReview}=No" \ - --field "customfield_${customfield_integrator}=" \ - --field "customfield_${customfield_tester}=" \ + --field "${customfield_currentlyInIntegration}"=Yes \ + --field "${customfield_componentLeadReview}"=No \ + --field "${customfield_integrator}"= \ + --field "${customfield_tester}"= \ --comment "Continuous queues manage: Moving to current because it's important" \ --role "Integrators" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: important" >> "${logfile}" @@ -172,14 +172,14 @@ function run_A3a() { # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes" + # --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_currentlyInIntegration}=Yes" \ - --field "customfield_${customfield_componentLeadReview}=No" \ - --field "customfield_${customfield_integrator}=" \ - --field "customfield_${customfield_tester}=" \ + --field "${customfield_currentlyInIntegration}"=Yes \ + --field "${customfield_componentLeadReview}"=No \ + --field "${customfield_integrator}"= \ + --field "${customfield_tester}"= \ --comment "Continuous queues manage: Moving to current given we are below the threshold ($currentmin)" \ --role "Integrators" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: threshold (before ${lastweekdate})" >> "${logfile}" @@ -280,14 +280,14 @@ function run_B1b() { # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes" + # --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_currentlyInIntegration}=Yes" \ - --field "customfield_${customfield_componentLeadReview}=No" \ - --field "customfield_${customfield_integrator}=" \ - --field "customfield_${customfield_tester}=" \ + --field "${customfield_currentlyInIntegration}"=Yes \ + --field "${customfield_componentLeadReview}"=No \ + --field "${customfield_integrator}"= \ + --field "${customfield_tester}"= \ --comment "Continuous queues manage: Moving to current given we are below the threshold ($currentmin)" \ --role "Integrators" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current on-sync: threshold" >> "${logfile}" @@ -393,13 +393,13 @@ function run_C() { # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes" + # --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_currentlyInIntegration}=" \ - --field "customfield_${customfield_integrator}=" \ - --field "customfield_${customfield_tester}=" \ + --field "${customfield_currentlyInIntegration}"= \ + --field "${customfield_integrator}"= \ + --field "${customfield_tester}"= \ --comment "Continuous queues manage: Moving out from current because it's held" \ --role "Integrators" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved out from current: held" >> "${logfile}" diff --git a/tracker_automations/delay_awaiting_issues/delay_awaiting_issues.sh b/tracker_automations/delay_awaiting_issues/delay_awaiting_issues.sh index 8e8ea4dc..f4966a0a 100755 --- a/tracker_automations/delay_awaiting_issues/delay_awaiting_issues.sh +++ b/tracker_automations/delay_awaiting_issues/delay_awaiting_issues.sh @@ -63,8 +63,8 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_currentlyInIntegration}=" \ - --field "customfield_${customfield_integrationPriority}=1" \ + --field "${customfield_currentlyInIntegration}"= \ + --field "${customfield_integrationPriority}"=1 \ --comment "${altcomment}" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}" done diff --git a/tracker_automations/manage_waiting_for_feedback/manage_waiting_for_feedback.sh b/tracker_automations/manage_waiting_for_feedback/manage_waiting_for_feedback.sh index 4077e365..a11cbf09 100755 --- a/tracker_automations/manage_waiting_for_feedback/manage_waiting_for_feedback.sh +++ b/tracker_automations/manage_waiting_for_feedback/manage_waiting_for_feedback.sh @@ -144,8 +144,8 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "Reopen Issue" \ - --field "customfield_${customfield_currentlyInIntegration}=" \ - --field "customfield_${customfield_componentLeadReview}=" \ + --field "${customfield_currentlyInIntegration}"= \ + --field "${customfield_componentLeadReview}"= \ --comment "${comment}" done diff --git a/tracker_automations/move_to_current_integration/move_to_current_integration.sh b/tracker_automations/move_to_current_integration/move_to_current_integration.sh index cebee818..a4f9b133 100755 --- a/tracker_automations/move_to_current_integration/move_to_current_integration.sh +++ b/tracker_automations/move_to_current_integration/move_to_current_integration.sh @@ -61,15 +61,15 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}}=Yes" + # --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_integrator}=" \ - --field "customfield_${customfield_integrationDate}=" \ - --field "customfield_${customfield_currentlyInIntegration}=Yes" \ - --field "customfield_${customfield_componentLeadReview}=No" \ - --field "customfield_${customfield_tester}=" \ + --field "${customfield_integrator}"= \ + --field "${customfield_integrationDate}"= \ + --field "${customfield_currentlyInIntegration}"=Yes \ + --field "${customfield_componentLeadReview}"=No \ + --field "${customfield_tester}"= \ --comment "Moving this issue to current integration cycle, will be reviewed soon. Thanks for the hard work!" ${basereq} --action removeLabels \ --issue ${issue} \ diff --git a/tracker_automations/mv_reopened_out_from_current/mv_reopened_out_from_current.sh b/tracker_automations/mv_reopened_out_from_current/mv_reopened_out_from_current.sh index 46a9b3f3..5ed8a982 100755 --- a/tracker_automations/mv_reopened_out_from_current/mv_reopened_out_from_current.sh +++ b/tracker_automations/mv_reopened_out_from_current/mv_reopened_out_from_current.sh @@ -75,15 +75,15 @@ while read line; do # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field "customfield_${customfield_currentlyInIntegration}=" \ + # --field "${customfield_currentlyInIntegration}"= \ # --comment "Moving this reopened issue out from current integration. Please, re-submit it for integration once ready." # ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ --fixVersions "${keepversion}" \ - --field "customfield_${customfield_currentlyInIntegration}=" \ - --field "customfield_${customfield_automatedTestResults}=" \ + --field "${customfield_currentlyInIntegration}"= \ + --field "${customfield_automatedTestResults}"= \ --comment "Moving this reopened issue out from current integration. Please, re-submit it for integration once ready." echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}" done < "${resultfile}" diff --git a/tracker_automations/normal_manage_queues/lib.sh b/tracker_automations/normal_manage_queues/lib.sh index 627f593f..40d3945d 100755 --- a/tracker_automations/normal_manage_queues/lib.sh +++ b/tracker_automations/normal_manage_queues/lib.sh @@ -62,14 +62,14 @@ function run_A() { # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes" + # --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_currentlyInIntegration}=Yes" \ - --field "customfield_${customfield_componentLeadReview}=No" \ - --field "customfield_${customfield_integrator}=" \ - --field "customfield_${customfield_tester}=" \ + --field "${customfield_currentlyInIntegration}"=Yes \ + --field "${customfield_componentLeadReview}"=No \ + --field "${customfield_integrator}"= \ + --field "${customfield_tester}"= \ --comment "Normal queues manage: Moving to current because it's important" \ --role "Integrators" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: important" >> "${logfile}" @@ -134,14 +134,14 @@ function run_B() { # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes" + # --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_currentlyInIntegration}=Yes" \ - --field "customfield_${customfield_componentLeadReview}=No" \ - --field "customfield_${customfield_integrator}=" \ - --field "customfield_${customfield_tester}=" \ + --field "${customfield_currentlyInIntegration}"=Yes \ + --field "${customfield_componentLeadReview}"=No \ + --field "${customfield_integrator}"= \ + --field "${customfield_tester}"= \ --comment "Normal queues manage: Moving to current given we are below the threshold ($currentmin)" \ --role "Integrators" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: threshold" >> "${logfile}" @@ -175,11 +175,11 @@ function run_C() { # that non-transitional transition and use normal update. #${basereq} --action updateIssue \ # --issue ${issue} \ - # --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes" + # --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_integrationPriority}=1" \ + --field "${customfield_integrationPriority}"=1 \ --comment "Normal queues manage: Raising integration priority after ${waitingdays} days awaiting" \ --role "Integrators" echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} raised integration priority" >> "${logfile}" diff --git a/tracker_automations/set_integration_priority_to_one/set_integration_priority_to_one.sh b/tracker_automations/set_integration_priority_to_one/set_integration_priority_to_one.sh index 51332025..abeeb96d 100755 --- a/tracker_automations/set_integration_priority_to_one/set_integration_priority_to_one.sh +++ b/tracker_automations/set_integration_priority_to_one/set_integration_priority_to_one.sh @@ -107,7 +107,7 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_integrationPriority}=1" + --field "${customfield_integrationPriority}"=1 echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}" echo done diff --git a/tracker_automations/set_integration_priority_to_zero/set_integration_priority_to_zero.sh b/tracker_automations/set_integration_priority_to_zero/set_integration_priority_to_zero.sh index 7a26bbdf..f20dce34 100755 --- a/tracker_automations/set_integration_priority_to_zero/set_integration_priority_to_zero.sh +++ b/tracker_automations/set_integration_priority_to_zero/set_integration_priority_to_zero.sh @@ -56,7 +56,7 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_integrationPriority}=0" + --field "${customfield_integrationPriority}"=0 echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}" done @@ -131,7 +131,7 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do ${basereq} --action transitionIssue \ --issue ${issue} \ --transition "CI Global Self-Transition" \ - --field "customfield_${customfield_integrationPriority}=0" + --field "${customfield_integrationPriority}"=0 echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}" echo done