This article shows how to synchronize issue resolution field in Jira.

Introduction

Whenever you need to sync the resolution, you have to ensure that the resolution from the remote side is mapped to the local resolution objects.

Source side

Add the code below to the Outgoing sync(Data Filter) to send a resolution to the other side.

replica.resolution = issue.resolution



Destination side  

Add the code below to the  Create/Change processors to set the resolution for the synced issue, based on the source side data.

 

if (replica.resolution == null && issue.resolution != null) {
   // if the remote issue is not resolved, but the local issue is
 
   issue.resolution = null
}
 
if (replica.resolution != null && issue.resolution == null) {
   // the remote issue is resolved, but the local isn't - look up the correct resolution object.
 
   // use 'done' as resolution if the remote resolution is not found
   issue.resolution = nodeHelper.getResolution(replica.resolution.name) ?: nodeHelper.getResolution("Done")
}


See also