Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

Stop Sync if the issue is closed

 
1
0
-1

Lets say our 2 instances are INT1 & Int2.


We would like to stop sync for INT1 once the ticket closed on the INT1 even though the ticket is still open on Int2.

and if the Updates happen on Closed INT1 it should sync with Int2.



Is this doable in Exalate. Please help us with the steps to follow. 

  1. Ariel Aguilar

    Hi Madhu,

    With Exalate is doable you may need to add the following snippet into the incoming INT2 side:

    if (!firstSync && replica.status.name == "Closed") {
        \\here you add the script rules you want to run when the remote side is closed, and it's not first sync.
    }

    Let me know if that helped,

    Kind regards,

    Ariel

  2. Madhu

    Hello Ariel Aguilar Thanks for looking into this issue.

    Do we need to add the Connection names in the code snippet ?

    There are no connection names mentioned in your snippet. 


    Thanks&Regards

    Reddy

  3. Ariel Aguilar

    Hi Reddy.
    Just to confirm, are you using the Visual Editor?

    Kind regards,

    Ariel

  4. Madhu

    Hi Ariel Aguilar We are using Script mode for our connection


    Thanks & regards

    Reddy

  5. Ariel Aguilar

    Hi Madhu,

    Then, if you have the script based connection, there is no need to specify the "connection" names but it would be helpful if you can elaborate more on what you require.

    Kind regards,

    Ariel


  6. Madhu

    Hi Ariel Aguilar 

    Here I would like to stop the sync if the status is DONE on my side irrespective of the other side status. 

    Please have a look at the snapshot of my incoming sync, I tried to add your code and Not able to publish the connection as it is throwing some errors. 


    Please help me with the script code. 


    Thanks & Regards

    Madhu

CommentAdd your comment...

1 answer

  1.  
    1
    0
    -1

    Change the backslash characters to forward slash and you you will not get an error


    if (!firstSync && replica.status.name == "Closed") {
        //here you add the script rules you want to run when the remote side is closed, and it's not first sync.
    }
      CommentAdd your comment...