Skip to content

Commit ccf2d97

Browse files
committed
Move from "search" parameter to "jql" one
It was deprecated around Jira CLI 6 and removed recently.
1 parent bd4c32c commit ccf2d97

File tree

22 files changed

+44
-44
lines changed

22 files changed

+44
-44
lines changed

tracker_automations/bulk_precheck_issues/criteria/awaiting_integration/query.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
${basereq} --action getIssueList \
2-
--search "project = 'Moodle' \
2+
--jql "project = 'Moodle' \
33
AND status = 'Waiting for integration review' \
44
AND (labels IS EMPTY OR labels NOT IN (ci, security_held, integration_held)) \
55
AND level IS EMPTY \

tracker_automations/bulk_precheck_issues/criteria/awaiting_peer_review/query.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
${basereq} --action getIssueList \
2-
--search "project = 'Moodle' \
2+
--jql "project = 'Moodle' \
33
AND (status = 'Waiting for peer review' OR status = 'Peer review in progress') \
44
AND (labels IS EMPTY OR labels NOT IN (ci, security_held, integration_held)) \
55
AND level IS EMPTY \

tracker_automations/bulk_precheck_issues/criteria/developer_request/query.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
${basereq} --action getIssueList \
2-
--search "project = 'Moodle' \
2+
--jql "project = 'Moodle' \
33
AND labels IN (cime) \
44
ORDER BY priority DESC, votes DESC, 'Last comment date' ASC" \
55
--outputFormat 101 \

tracker_automations/bulk_prelaunch_jobs/criteria/awaiting_integration/query.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
${basereq} --action getIssueList \
2-
--search "project = 'Moodle' \
2+
--jql "project = 'Moodle' \
33
AND status = 'Waiting for integration review' \
44
AND status WAS NOT 'Waiting for integration review' ON '-${schedulemins}' \
55
AND participants not in (tobic) \

tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls/query.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
${basereq} --action getIssueList \
2-
--search "project = 'Moodle' \
2+
--jql "project = 'Moodle' \
33
AND issue IN (${issueslist}) \
44
AND level IS EMPTY \
55
ORDER BY priority DESC, votes DESC, 'Last comment date' ASC" \

tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls_sdev/query.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
${basereq} --action getIssueList \
2-
--search "project = 'Moodle' \
2+
--jql "project = 'Moodle' \
33
AND issue IN (${issueslist}) \
44
AND cf[10100] ~ 'integration/security-testing' \
55
AND level IS NOT EMPTY \

tracker_automations/check_marked_as_integrated/check_marked_as_integrated.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ IFS=',' read -a devbranchesarr <<< "$devbranches" # Convert devbranches to array
5050

5151
# Let's search for all the issues currently under integration.
5252
${basereq} --action getIssueList \
53-
--search "project = 'Moodle' \
53+
--jql "project = 'Moodle' \
5454
AND status IN ( \
5555
'Waiting for testing', \
5656
'Testing in progress', \

tracker_automations/close_tested_issues/close_tested_issues.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Closing as fixed!"}
4747

4848
# Let's search all the tested issues under current integration.
4949
${basereq} --action getIssueList \
50-
--search "project = 'Moodle' \
50+
--jql "project = 'Moodle' \
5151
AND status = 'Tested' \
5252
AND 'Currently in integration' IS NOT EMPTY" \
5353
--file "${resultfile}"

tracker_automations/continuous_manage_queues/lib.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function run_A1() {
2424

2525
# Get the list of issues.
2626
${basereq} --action getIssueList \
27-
--search "filter=14000 \
27+
--jql "filter=14000 \
2828
AND type IN ('New Feature', Improvement) \
2929
AND NOT filter = 22054" \
3030
--file "${resultfile}"
@@ -56,7 +56,7 @@ If you want Moodle HQ to consider including it into the incoming major release p
5656
function run_A2() {
5757
# Get the list of issues.
5858
${basereq} --action getIssueList \
59-
--search "filter=14000
59+
--jql "filter=14000
6060
AND NOT filter = 21366
6161
AND (
6262
filter = 21363 OR
@@ -110,7 +110,7 @@ function run_A2() {
110110
function run_A3a() {
111111
# Count the list of issues in the current queue. (We cannot use getIssueCount till bumping to Jira CLI 8.1, hence, old way)
112112
${basereq} --action getIssueList \
113-
--search "project = MDL \
113+
--jql "project = MDL \
114114
AND 'Currently in integration' IS NOT EMPTY \
115115
AND status IN ('Waiting for integration review')" \
116116
--file "${resultfile}"
@@ -126,7 +126,7 @@ function run_A3a() {
126126
if [[ "$counter" -lt "$currentmin" ]]; then
127127
# Get an ordered list of issues in the candidate queue.
128128
${basereq} --action getIssueList \
129-
--search "filter=14000 \
129+
--jql "filter=14000 \
130130
ORDER BY 'Integration priority' DESC, \
131131
priority DESC, \
132132
votes DESC, \
@@ -183,7 +183,7 @@ function run_A3a() {
183183
function run_A3b() {
184184
# Get the list of issues in the candidates queue. All them will be held with last week comment.
185185
${basereq} --action getIssueList \
186-
--search "filter=14000" \
186+
--jql "filter=14000" \
187187
--file "${resultfile}"
188188

189189
# Iterate over found issues, moving them to the current queue.
@@ -210,7 +210,7 @@ function run_A3b() {
210210
function run_B1b() {
211211
# Count the list of issues in the current queue. (We cannot use getIssueCount till bumping to Jira CLI 8.1, hence, old way)
212212
${basereq} --action getIssueList \
213-
--search "project = MDL \
213+
--jql "project = MDL \
214214
AND 'Currently in integration' IS NOT EMPTY \
215215
AND status IN ('Waiting for integration review')" \
216216
--file "${resultfile}"
@@ -226,7 +226,7 @@ function run_B1b() {
226226
if [[ "$counter" -lt "$currentmin" ]]; then
227227
# Get an ordered list of issues in the candidate queue.
228228
${basereq} --action getIssueList \
229-
--search "filter=14000 \
229+
--jql "filter=14000 \
230230
ORDER BY 'Integration priority' DESC, \
231231
priority DESC, \
232232
votes DESC, \
@@ -289,7 +289,7 @@ function run_B1a() {
289289

290290
# Get the list of issues.
291291
${basereq} --action getIssueList \
292-
--search "filter=14000 \
292+
--jql "filter=14000 \
293293
AND type IN ('New Feature', Improvement) \
294294
AND NOT filter = 22054" \
295295
--file "${resultfile}"
@@ -336,7 +336,7 @@ function is_blocked_by_unresolved() {
336336
# (note that, since JiraCLI 8.1, getIssueCount can be used instead, but we are using older)
337337
if [[ -n ${blockedbyissues} ]]; then
338338
${basereq} --action getIssueList \
339-
--search "resolution = Unresolved AND issue IN (${blockedbyissues})" \
339+
--jql "resolution = Unresolved AND issue IN (${blockedbyissues})" \
340340
--file "${resultfile}.2"
341341
# If there are issues returned... then the issue still has unresolved blockers.
342342
for unresolvedissue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}.2" ); do

tracker_automations/count_delayed_last_cycle/count_delayed_last_cycle.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ basereq="${jiraclicmd} --server ${jiraserver} --user ${jirauser} --password ${ji
5656
# it is a custom field (outputFormat = 2) and it requires
5757
# admin provileges. For now we don't want the cibot to have them.
5858
${basereq} --action getIssueList \
59-
--search "project = 'Moodle' \
59+
--jql "project = 'Moodle' \
6060
AND status = 'Closed' \
6161
AND 'Integration date' IS NOT empty
6262
ORDER BY 'Integration date' DESC" \
@@ -99,7 +99,7 @@ lastintegrationnum=0
9999
lastintegrationdatequoted=\'${lastintegrationdate}\'
100100
lastintegrationdatesecs=$(date -d "${lastintegrationdate}" +%s)
101101
${basereq} --action getIssueList \
102-
--search "project = 'Moodle' \
102+
--jql "project = 'Moodle' \
103103
AND status WAS IN ( \
104104
'Waiting for integration review', \
105105
'Integration review in progress', \

0 commit comments

Comments
 (0)