Skip to content

Commit

Permalink
replace parenthesis with link characters to make link to jira integra…
Browse files Browse the repository at this point in the history
…tion smooth
  • Loading branch information
rmd9481 authored and Ryan Devoe committed Mar 26, 2024
1 parent d678574 commit bd39751
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const setupJiraIssueCollector = (customButtonId: string, entityUrn: strin

const urn = getEntityUrn();
values.summary = `Access Request for ${urn}`;
values.description = `http://localhost:9002/${urn.split(':')[2]}/${urn}`;
const encodedUrn = urn.replace(/\(/g, '%28').replace(/\)/g, '%29');
values.description = `https://datahub-frontend.sharp.com/${urn.split(':')[2]}/${encodedUrn}`;
values.fullname = 'Enter Sharp Username';
values.email = 'email@sharp.com';

Expand All @@ -40,10 +41,12 @@ export const setupJiraIssueCollector = (customButtonId: string, entityUrn: strin
};
} else {
window.ATL_JQ_PAGE_PROPS.fieldValues = function () {
const values: { summary?: string; fullname?: string; email?: string } = {};
const values: { summary?: string; description?: string; fullname?: string; email?: string } = {};

const urn = getEntityUrn();
values.summary = `localhost:9002/${urn.split(':')[2]}/${urn}`;
values.summary = `Access Request for ${urn}`;
const encodedUrn = urn.replace(/\(/g, '%28').replace(/\)/g, '%29');
values.description = `https://datahub-frontend.sharp.com/${urn.split(':')[2]}/${encodedUrn}`;
values.fullname = 'Enter Sharp Username';
values.email = 'email@sharp.com';

Expand Down

0 comments on commit bd39751

Please sign in to comment.