# Single sprint Sync

**URL:** <https://community.exalate.com/t/single-sprint-sync/5366>\
**Category:** General Questions\
**Tags:** jira-cloud, migrated\_question, sync-sprint, sprint\
**Created:** [November 4, 2024, 8:00am UTC](https://community.exalate.com/t/single-sprint-sync/5366 "2024-11-04T08:00:03Z")\
**Posts on this page:** 4\
**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, 8:00am UTC](https://community.exalate.com/t/single-sprint-sync/5366/1 "2024-11-04T08:00:03Z")

</div>

_Originally asked by Nicolò Spito on 28 November 2022 [(original question)](https://oldcommunity.exalate.com/questions/58497217)_

* * *

Hi team!

We have 2 Jira Cloud instances.

We would like to test a sync by synchronizing only a Single Sprint of a board. (Not all Sprints of the Sprint Board).

Have you got any insight to perform this action?

Thanks!

* * *

---

<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, 8:00am UTC](https://community.exalate.com/t/single-sprint-sync/5366/2 "2024-11-04T08:00:10Z")

</div>

_Answer by Syed Majid Hassan on 29 November 2022_

Hi Nicolo,

I have just tested this using the following code snippet on the Outgoing side:

```auto
def boardIds = ["7"] //Boards which sprints will get synced
if(entityType == "sprint" && boardIds.find{it == sprint.originBoardId}){
    if (sprint.name!="MP Sprint 2") return
    replica.name = sprint.name
    replica.goal = sprint.goal
    replica.state = sprint.state
    replica.startDate = sprint.startDate
    replica.endDate = sprint.endDate
    replica.originBoardId = sprint.originBoardId
}

```

The key is the if statement which would return unless the name matches a specific sprint that you want to sync.

Hopefully this gives you a path forward.

Thanks

Majid

* * *

---

<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, 8:00am UTC](https://community.exalate.com/t/single-sprint-sync/5366/3 "2024-11-04T08:00:11Z")

</div>

_Answer by Nicolò Spito on 30 November 2022_

Thank you Syed! Super!

I’m going to test it!!! 😄

* * *

---

<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 6, 2024, 8:00am UTC](https://community.exalate.com/t/single-sprint-sync/5366/4 "2024-11-06T08:00:19Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
