How to Sync linked record in Exalate of scripted mode

Originally asked by Moogambigai G R on 05 November 2021 (original question)


Hi,

I have the following requirement.

Need input to sync linked issues between two projects in exalate.

We have two projects named as DAR and OEM and both projects issuetype as “SRT Event”.

we are using same connection(one instance) to sync between two projects.

Example: DAR ->OEM sync

  1. We are syncing DAR-1 issues to OEM side, the new record OEM-1 will be created.
  2. After we linked one “Defect” Issuetype (DAR-2) issues to DAR-1 issues, the record (DAR-2) should also sync to OEM-1 issues as well.

we have tried below code, sync is not happening.
please assist.

Outgoing:
replica.issueLinks = issue.issueLinks
Incoming:
issue.issueLinks = replica.issueLinks

Regards,

Moogambigai G R


Comments:

Ariel Aguilar commented on 05 November 2021

Hi there,

Maybe you can try to follow: https://docs.idalko.com/exalate/x/zIKKAg

Kind regards,

Ariel

Moogambigai G R commented on 08 November 2021

Hi Ariel Aguilar

Thanks for the documentation. We will try this solution. could you please confirm the below point.

  • In documentation, first point is to add the .groovy file into the scripts directory. It will impact any other groovy scripts or script runner?

Regards,

Moogambigai G R

Daniel Carvajal commented on 08 November 2021

Hi Moogambigai G R

No there shouldn’t be any problem to implement the issue links script, as for script runner its hard to tell depending on your implementation, generally speaking if there is no issue link handling by the script runner there shouldn’t be any problem.

We strongly recommend to have a testing/staging environment to test everything prior implementation.

Kind regards,

Daniel

Moogambigai G R commented on 09 November 2021

Hi Daniel Carvajal

We have tried the steps as per in documentation, but issue link sync is not happening in remote side.

Can we setup a call to look into detail?

We are available from 10:30 AM IST - 9:00 PM IST

Please share your convenient time.

Regards,

Moogambigai G R