Skip to content

Commit 8a30bfb

Browse files
authored
test: Update JIRA API search endpoint to use JQL (#40015)
1 parent 02b35d5 commit 8a30bfb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/meteor/reporters/jira.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class JIRAReporter implements Reporter {
8282
// first search and check if there is an existing issue
8383
// replace all ()[]- with nothing
8484
const search = await fetch(
85-
`${this.url}/rest/api/3/search?${new URLSearchParams({
85+
`${this.url}/rest/api/3/search/jql?${new URLSearchParams({
8686
jql: `project = FLAKY AND summary ~ '${payload.name.replace(/[\(\)\[\]-]/g, '')}'`,
8787
})}`,
8888
{
@@ -97,7 +97,7 @@ class JIRAReporter implements Reporter {
9797
if (!search.ok) {
9898
throw new Error(
9999
`JIRA: Failed to search for existing issue: ${search.statusText}.` +
100-
`${this.url}/rest/api/3/search${new URLSearchParams({
100+
`${this.url}/rest/api/3/search/jql?${new URLSearchParams({
101101
jql: `project = FLAKY AND summary ~ '${payload.name}'`,
102102
})}`,
103103
);

0 commit comments

Comments
 (0)