Originally asked by Dominik Blum on 12 October 2020 (original question)
Hi all,
We want to synchronize the customer request type from system A to system B, but instead of setting the new customer request type only the old value is removed in system B.
I used log.info to find out what is going wrong but the only thing I’ve found out
replica.customFields."Customer Request Type".value
and
issue.customFields."Customer Request Type".value
are identical on a system. But the value differs from system A to system B.
Below find all details that may help:
System A:
Service Desk version: 4.12.2
Jira version: 8.12.2
Exalate version: 5.0.3-j8
Outgoing rule on system A: replica.customFields.“Customer Request Type” = issue.customFields.“Customer Request Type”
System B:
Service Desk version: 4.7.1
Jira version: 8.7.1
Exalate version: 5.0.3-j8
Incoming rule on system B: issue.customFields.“Customer Request Type”.value = replica.customFields.“Customer Request Type”.value
If I use the ids instead in my incoming rule the synchronization works as expected:
switch(replica.customFields."Customer Request Type".value) {
case "sdc1/98f72ad7-cd15-401a-9eb7-e0b303345e1d":
issue.customFields."Customer Request Type".value = "Request a New Feature"
break;
case "sdc1/f585e8bb-b9ae-40da-b1ef-5343d57c0cf8":
issue.customFields."Customer Request Type".value = "Improve Functionality"
break;
}
But I don’t want to use such hard coded values as this would mean we need to edit the sync rules when adding new request types in both systems.
Best regards,
Dominik
Comments:
Michiel Meurs commented on 13 October 2020
Hi Dominik Blum,
Atlassian has only just enabled this feature and we’re working on a way to improve it. For now, using the ID’s is the way to go. An improvement has been raised for our Dev team.
Dominik Blum commented on 14 October 2020
Thanks for the information Michiel Meurs