Originally asked by Jose Lobo on 23 September 2020 (original question)
How can I set the assignment_group on the ServiceNow side versus the assigned_to?
The idea is to populate a Jira field with the team to assign the ServiceNow tasks to.
Originally asked by Jose Lobo on 23 September 2020 (original question)
How can I set the assignment_group on the ServiceNow side versus the assigned_to?
The idea is to populate a Jira field with the team to assign the ServiceNow tasks to.
Answer by André Leroy-Beaulieu Castro on 23 September 2020
Hi!
To populate a custom field in Jira with the assignment_group of the corresponding ServiceNow entity, in this case an Incident:
ServiceNow Outgoing Sync:
if(incident.assignment_group && incident.assignment_group != "")){
replica.assignment_group = incident.assignment_group?.displayValue
}
Jira Incoming Sync:
//Change "ServiceNow Assignment Group" to the actual name of the Jira custom field you wish to populate with this info.
issue.customFields."ServiceNow Assignment Group"?.value = replica.assignment_group
Thanks,
André
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.