Assignment Group to Component sync

Originally asked by Jose Lobo on 24 September 2020 (original question)


We need to sync the Assignment Group to Component – how hard is it to map that with Exalate?


Answer by André Leroy-Beaulieu Castro on 24 September 2020

Hi!

You are going to need to map from the ServiceNow Assignment group values to the corresponding component names in Jira :smile:

ServiceNow Outgoing Sync:

if(incident.assignment_group && incident.assignment_group != "")){
  replica.assignment_group = incident.assignment_group?.displayValue
}

Jira Incoming Sync:

def componentsMapping = ["Assignment Group A":"Component Name 1",
                         "Assignment Group B":"Component Name 2"]
def component = nodeHelper.getComponent(componentMapping[replica.assignment_group], issue)
issue.components += component

Thanks,

André


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.