-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjira.js
30 lines (25 loc) · 837 Bytes
/
jira.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function generateJiraMarkup(data, imageUrl) {
return `{panel:title=Incident Reference|titleBGColor=lightsalmon}
ServiceNow Incident Reference: ${data.incident_ref}
{panel}
{panel:title=Incident Details|titleBGColor=pink}
*Dealership Information:*
Sales Consultant Name: ${data.sales_name}
Sales Consultant Lan ID: ${data.lan_id}
Dealership Code: ${data.dealer_code}
*Device Information:*
Device Type: ${data.device_type}
Device OS: ${data.device_os}
Device OS Version: ${data.os_version}
About Screenshot: ${data.screenshot_info}
*Application Information:*
Version Number: ${data.version_number}
Version Commit Hash: ${data.commit_hash}
{panel}
{panel:title=Issue|titleBGColor=darksalmon}
${data.issue_details}
{panel}
{panel:title=Add Screenshot(s) or video of issue|titleBGColor=lightgrey}
![Screenshot](${imageUrl})
{panel}`
}