Scenario:
Issue 1 (Task) to be created if PG 1 is selected.
Issue 2 (Task) to be created if PG 2 is selected.
However we need to use "Issue 1 Relates to Issue 2".
Code used:
#set ($thisTEAM = "")
#set ($thisREQUEST = "")
#if ("[entry.ImpactedPoDs.escapeJSON]" == "AIMRKK")
#set ($thisTEAM = "46452")
#end
{
"fields":
{
"project": { "key": "AIMRKK" },
"issuetype" : { "name": "Task" },
"summary" : "[entry.Summary.escapeJSON]",
"labels": ["$thisREQUEST", "WMPAdviceIntake",],
"customfield_19600": "$thisTEAM",
"description" : " *Submitter Name:* [entry.SubmitterName] \n\n *Submitter Email:* [entry.Email] \n\n *NDA:* [entry.NDA] \n\n *Request Type:* [entry.TypeOfWork.label] \n\n *Submitter Org:* [entry.SubmitterOrg] \n\n *Impacted PGs:* [entry.ImpactedPG] \n\n \n\n *Other Impacted Journey/Platform:* [entry.ImpactedPlatforms] \n\n *Request Summary:* [entry.Summary.escapeJSON] \n\n *Request Description:* [entry.Description.escapeJSON] \n\n *Target Date Org:* [entry.TargetDate] \n\n *Severity:* [entry.Severity] \n\n *Additional Details [entry.AdditionalDetails.escapeJSON] \n\n "
"issuelinks":[ { "add": { "name":"Link", "inward":"relates to"}, "outwardIssue":{ "key":iftttResult_JIRAID.escapeJSON}}]
}
} |