@danypops/tickets 0.4.1 → 0.4.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/tickets",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Unified CLI, daemon, and TypeScript library for issue tracking across GitHub, GitLab, and Jira.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -264,8 +264,14 @@ 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 -- but unlike the old endpoint
270
+ // (which defaulted to *navigable fields), this one defaults to id-only, so
271
+ // toDomain() would crash on a missing summary/status/etc. without an explicit
272
+ // fields request. "*all" restores the old behavior (including custom fields).
267
273
  const result = await this.call<{ issues?: JiraIssue[] }>(() =>
268
- this.client.issueSearch.searchForIssuesUsingJqlPost({ jql, maxResults: limit }),
274
+ this.client.issueSearch.searchForIssuesUsingJqlEnhancedSearchPost({ jql, maxResults: limit, fields: ["*all"] }),
269
275
  );
270
276
  return (result?.issues ?? []).map((raw) => this.toDomain(raw));
271
277
  }