I am trying to obtain the parent priority of JIRA ticket through a confiforms IFTTT so I can set the current priority to dynamically change based on inputs received and the parent priority. Any help would be greatly appreciated as I am currently unable to ID the parentPriority and not quite sure how to conduct the comparisons of text data.
#set($description = {"Description of the Issue:": "[entry.description.escapeJSON]","Impact Assessment:": "[entry.impact.value]","Data Sources:": "[entry.dataSources.escapeJSON]","Solution/Criteria:": "[entry.proposedSolution.escapeJSON]","Risks and Mitigation:": "[entry.risks.escapeJSON]","CASE#:": "[entry.case2.escapeJSON]"})
#set($panel = {"title":"Request", "BGColor": "#E1F5FE", "BorderColor": "#4FC3F7", "TitleBGColor": "#29B6F6", "type": "[entry.requestType.id]"})
#set($meta = {"labels": ["label1", "label3"], "summary": "[entry.summary.escapeJSON]"})
#if("[entry.requestType.value]" == "requesttype2")
#set($meta = {"labels": ["label1", "label2"], "summary": "[entry.summary.escapeJSON]"})
#set($panel = {"title": "New Detection", "BGColor": "#FFCDD2", "BorderColor": "#E53935", "TitleBGColor": "#C62828","type": "[entry.requestType.id]"})
#set($description = {"Description of the Issue:": "[entry.description.escapeJSON]","Impact Assessment:": "[entry.impact.value]","Data Sources:": "[entry.dataSources.escapeJSON]","Solution/Criteria:": "[entry.Criteria.escapeJSON]","Risks and Mitigation:": "[entry.risks.escapeJSON]","CASE#:": "[entry.case.escapeJSON]"})
#end
JSON Section:
{
"project": { "key": "MY-KEY" },
"parent": { "key": "[entry.category.id]" },
"summary": "$meta.get('summary')",
"issuetype": { "name": "$panel.get('type')" },
"priority": { "name": "$finalPriority" },
"labels": "$meta.get('labels')",
"description": {
"panel": {
"title": "$panel.get('title')",
"bgColor": "$panel.get('BGColor')",
"borderColor": "$panel.get('BorderColor')",
"titleBGColor": "$panel.get('TitleBGColor')",
"titleColor": "#FFFFFF",
"borderStyle": "solid",
"content": {
"Description of the Issue:": "$description.get('Description of the Issue:')",
"Impact Assessment:": "$description.get('Impact Assessment:')",
"Data Sources:": "$description.get('Data Sources:')",
"Proposed Solution/Criteria:": "$description.get('Solution/Detection Criteria:')",
"Risks and Mitigation:": "$description.get('Risks and Mitigation:')",
"Additional Notes or Details:": "[entry.notes.escapeJSON]"
}
}
}
}