# Will it be possible to sync linked confluence pages between issues in the same instance?

**URL:** <https://community.exalate.com/t/will-it-be-possible-to-sync-linked-confluence-pages-between-issues-in-the-same-instance/4106>\
**Category:** General Questions\
**Tags:** cloud-jira, migrated\_question, usecase-local, feature-links\
**Created:** [November 4, 2024, 6:31am UTC](https://community.exalate.com/t/will-it-be-possible-to-sync-linked-confluence-pages-between-issues-in-the-same-instance/4106 "2024-11-04T06:31:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:31am UTC](https://community.exalate.com/t/will-it-be-possible-to-sync-linked-confluence-pages-between-issues-in-the-same-instance/4106/1 "2024-11-04T06:31:07Z")

</div>

_Originally asked by Jonathan on 16 October 2019 [(original question)](https://oldcommunity.exalate.com/questions/5668904)_

* * *

I would like to know if it’s possible to sync the confluence pages that have been linked to an issue within projects in the same instance, my use case of exalate is to sync mobile development projects, we manage each platform as a separate project, but it’s hard to keep everybody in the same page without the confluence links.Source: [Jira Cloud](https://oldcommunity.exalate.com/pages/viewpage.action?pageId=3703235)_(old community)_

* * *

#### Comments:

> **Francis Martens (Exalate) commented on 16 October 2019**
>
> > Hi Jonathan - Thanks for raising your question here.
> 
> Just for my understanding
> 
> - You have an issue you would like to synchronize to another project
> - This issue has links to confluence pages
> - The twin issue should have the same links?

> **Jonathan commented on 16 October 2019**
>
> > Exactly

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:31am UTC](https://community.exalate.com/t/will-it-be-possible-to-sync-linked-confluence-pages-between-issues-in-the-same-instance/4106/2 "2024-11-04T06:31:08Z")

</div>

_Answer by Francis Martens (Exalate) on 12 November 2019_

It took some time to get it done

Example on how to use the jira interfaces to sync confluence links

- Check the snippets available [here|[https://stash.idalko.com/snippets/61c5ae54f2784ae0b0fc887a6b340397](https://stash.idalko.com/snippets/61c5ae54f2784ae0b0fc887a6b340397)]
- Add the 2 files to your \<jira-home\>/scripts folder
  - Clink.groovy
  - ConfluenceLinks.groovy

- In your outgoing sync use  
ConfluenceLinks.send()
- In your incoming sync use  
ConfluenceLinks.receive()

That’s it

Note

- It will not delete links
- It can only work on the same tracker

Please give it a try and let me know

* * *

#### Comments:

> **Jonathan commented on 13 November 2019**
>
> > I’m using Jira cloud, I believe that it’s not possible to add a script to the cloud version of jira, if it is possible, could you tell me how Francis Martens (Exalate)?

> **Francis Martens (Exalate) commented on 08 December 2019**
>
> > Alright Jonathan
> 
> The details for Confluence cloud are
> 
> ## To synchronize Confluence Page links and Web Links:
> 
> 1. Create a custom Field of type “Single line text” for a normal project or “Short text” for next-gen projects.
> 
> 2. Configure scripts
> 
> ### Outgoing Sync:
> 
> ```auto
> replica.customKeys."Remote Issue Links" = nodeHelper.getRemoteIssueLinks(issue)
> 
> ```
> 
> ```auto
>   
> 
> ```
> 
> ### Incoming Sync:
> 
> ```auto
> issue.customFields."Remote Issue Links".value = replica.customKeys."Remote Issue Links".collect {it.url }.join(", ")
> 
> ```
> 
> ```auto
>   
> More details available on the our documentation page   
> <https://docs.idalko.com/exalate/x/EADBAg>  
>   
> 
> ```
