diff --git a/README.md b/README.md index 5c6b69d..1164796 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ This feature allows for greater control over the closure process, ensuring that Introduced in version 1.7.2, this feature facilitates the linking of newly created issues to a specified Jira issue ID using a desired link type. The link type can be any of the available Jira Issue Link Types such as 'Relates', 'Blocks', 'Duplicates', etc. To utilize this functionality, you need to set the following environment variables: ``` -JIRA_FEATURE_KEY='Pj-12' +JIRA_LINK_ID='Pj-12' JIRA_LINK_TYPE='Relates' ``` diff --git a/src/macpro-security-hub-sync.ts b/src/macpro-security-hub-sync.ts index b1cce17..d6d24d3 100644 --- a/src/macpro-security-hub-sync.ts +++ b/src/macpro-security-hub-sync.ts @@ -333,7 +333,7 @@ export class SecurityHubJiraSync { let newIssueInfo; try { newIssueInfo = await this.jira.createNewIssue(newIssueData); - const feature_key = process.env.JIRA_FEATURE_KEY ?? ""; + const feature_key = process.env.JIRA_LINK_ID ?? ""; if (feature_key) { let linkType = "Relates"; if (process.env.JIRA_LINK_TYPE) {