@danypops/tickets 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/adapters/jira.ts +4 -1
package/package.json
CHANGED
package/src/adapters/jira.ts
CHANGED
|
@@ -264,8 +264,11 @@ export class JiraRepository {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
private async searchJql(jql: string, limit: number): Promise<Issue[]> {
|
|
267
|
+
// searchForIssuesUsingJqlPost hits the deprecated /rest/api/2/search, which
|
|
268
|
+
// Atlassian has sunset on Jira Cloud (410 Gone). The enhanced variant posts
|
|
269
|
+
// to the still-live /rest/api/2/search/jql with an identical request/response shape.
|
|
267
270
|
const result = await this.call<{ issues?: JiraIssue[] }>(() =>
|
|
268
|
-
this.client.issueSearch.
|
|
271
|
+
this.client.issueSearch.searchForIssuesUsingJqlEnhancedSearchPost({ jql, maxResults: limit }),
|
|
269
272
|
);
|
|
270
273
|
return (result?.issues ?? []).map((raw) => this.toDomain(raw));
|
|
271
274
|
}
|