From 513315e1600e1560fd471b2e12602d990ee5a546 Mon Sep 17 00:00:00 2001 From: Ashley Dawson Date: Mon, 6 Jul 2026 11:58:53 +0100 Subject: [PATCH] Fixed the crash (TypeError: Cannot read properties of undefined (reading 'summary')) when loading linked Jira issues that belong to an epic. --- manifest.json | 2 +- src/api/issues/listLinkedIssues/listLinkedIssues.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 8e7986f..fd70a93 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "title": "Jira", "description": "View Jira issues linked with Deskpro tickets to streamline communication with users", "appStoreUrl": "https://www.deskpro.com/product-embed/apps/jira", - "version": "1.0.63", + "version": "1.0.74", "scope": "agent", "isSingleInstall": false, "hasDevMode": true, diff --git a/src/api/issues/listLinkedIssues/listLinkedIssues.ts b/src/api/issues/listLinkedIssues/listLinkedIssues.ts index 438b48d..9d4e83f 100644 --- a/src/api/issues/listLinkedIssues/listLinkedIssues.ts +++ b/src/api/issues/listLinkedIssues/listLinkedIssues.ts @@ -53,7 +53,7 @@ export default async function listLinkedIssues( ); const { issues: fullEpics } = await jiraRequest( client, - { endpoint: `/search/jql?jql=${epicJql}` } + { endpoint: `/search/jql?jql=${epicJql}&fields=summary` } ); epics = (fullEpics ?? []).reduce((list, issue) => ({ @@ -75,7 +75,7 @@ export default async function listLinkedIssues( id: issue.id, key: issue.key, epicKey: epic?.key, - epicName: epic?.fields.summary, + epicName: epic?.fields?.summary, status: issue.fields.status?.name || "-", sprints: issueSprints, customFields: combineCustomFieldValueAndMeta(