Editing issue on both sides at the same time (Jira Cloud)

Originally asked by Victor E on 28 April 2020 (original question)


Hello,

Here is one “use case” for which I don’t find a solution in Exalate:

I have an issue synced on project A and project B with the fields:

  • Description: <empty>
  • Labels: <empty>

On both sides.

Then I edit the description on side A and the labels on side B, at the same time, so I have:

On side A:

  • Description: “Test desc”
  • Labels: <empty>

On side B:

  • Description: <empty>
  • Labels: Test_label

After the synchro, I have this:

On side A:

  • Description: <empty>
  • Labels: Test_label

On side B:

  • Description: “Test desc”
  • Labels: <empty>

I would like to have both changes merged on both sides:

On side A:

  • Description: “Test desc”
  • Labels: Test_label

On side B:

  • Description: “Test desc”
  • Labels: Test_label

Is there something that can helps me to achieve that with Exalate ?

Exalate is covering all my needs except that, great job by the way :smile:

Thank you.


Answer by Ariel Aguilar on 13 July 2021

Hi Victor,

This should help you to avoid receiving null values. Add this code to the incoming rules:

if (replica.description != null) {
issue.description = replica.description
}

The same logic can be applied to labels as well.

Kind regards,

Ariel