# Sync Sprints Jira Cloud to Server

**URL:** <https://community.exalate.com/t/sync-sprints-jira-cloud-to-server/4183>\
**Category:** General Questions\
**Tags:** cloud-jira, migrated\_question, sprint\
**Created:** [November 4, 2024, 6:36am UTC](https://community.exalate.com/t/sync-sprints-jira-cloud-to-server/4183 "2024-11-04T06:36:59Z")\
**Posts on this page:** 3\
**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:36am UTC](https://community.exalate.com/t/sync-sprints-jira-cloud-to-server/4183/1 "2024-11-04T06:36:59Z")

</div>

_Originally asked by PATRICIA FRANCEZI on 19 March 2020 [(original question)](https://oldcommunity.exalate.com/questions/11338637)_

* * *

Sync sprints from Jira Cloud to Jira server.

I followed the KB

[https://docs.idalko.com/exalate/pages/viewpage.action?pageId=46203325#HowtosynchronizesprintsonJira?-JiraServer](https://docs.idalko.com/exalate/pages/viewpage.action?pageId=46203325#HowtosynchronizesprintsonJira?-JiraServer)

I will sync only from Cloud (outgoing) to server (incoming).

When i try to save the code I get this error:

'Script cannot be saved. Details: startup failed: Script55.groovy: 1: expecting ‘)’, found ‘=’ @ line 1, column 51. rint" && sprint.originBoardId = “19”){ ^ 1 error ’

Line 1 is:

if(entityType == “sprint” && sprint.originBoardId = “19”){

19 is the board ID i got from my Sprint Active board.

The original code from KB.

`if``(entityType ==``"sprint"` `&& sprint.originBoardId =``"1"``){`  
`//We only sync sprints on board with id '1'`  
`[replica.name](http://replica.name) = [sprint.name](http://sprint.name)`  
`replica.goal = sprint.goal`  
`replica.state = sprint.state`  
`replica.startDate = sprint.startDate`  
`replica.endDate = sprint.endDate`  
`replica.originBoardId = sprint.originBoardId`  
`}`

`The kb says its only available for Cloud for connections created with scripting mode, but it saw no difference.`

`I have created first the project sync, and then im updating as i need with scripting, and no problems so far.`

`Is this the cause the error? Should I create a new connection to support this?`

* * *

---

<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:37am UTC](https://community.exalate.com/t/sync-sprints-jira-cloud-to-server/4183/2 "2024-11-04T06:37:06Z")

</div>

_Answer by Juan Grases on 19 March 2020_

Hi Patricia, line:

`if``(entityType ==``"sprint"` `&& sprint.originBoardId =``"1"``)`

should be

`if``(entityType ==``"sprint"` `&& sprint.originBoardId ==``"1"``)`

Best regards,

Juan

* * *

#### Comments:

> **PATRICIA FRANCEZI commented on 19 March 2020**
>
> > Need to updated the docs.
> 
> - some of the users are not developers
> 
> thanks

> **Juan Grases commented on 19 March 2020**
>
> > Thanks a lot for pointing out! Already fixed on docs.
> 
> Best regards,
> 
> Juan

> **PATRICIA FRANCEZI commented on 19 March 2020**
>
> > Juan, i got this error from Jira Server side, after correcting the outgoing script
> 
> Script error details: No such property: entityType for class: Script118. Error line: Script118.groovy:1
> 
> Need a new topic?

> **Juan Grases commented on 19 March 2020**
>
> > Hi! Are you running a 4.7.x version of exalate on Jira Server?

> **PATRICIA FRANCEZI commented on 19 March 2020**
>
> > No 4.6.0-j7 is the version client has.

> **Juan Grases commented on 19 March 2020**
>
> > Unfortunately the sprint sync is supported from 4.7.0

> **PATRICIA FRANCEZI commented on 19 March 2020**
>
> > well, updated know the error moved to
> 
> Script error details: No such property: value for class: Script24. Error line: Script24.groovy:43
> 
> my line 43 is the status mapping, that was working before updating
> 
> def checkboxCollection = replica.customFields.“Flagged”.
> 
> ```
> value?.
> 
> collect{
> 
> a\-\>
> 
> (line43\) nodeHelper.getOption (issue, "Flagged", a.value)
> 
> }
> 
> ```
> 
> issue.customFields.“Flagged”.value = checkboxCollection
> 
> Remembering that i still trying to sync sprints ,and divided the script in to if sprint and if issue as requested. There is no issue sync in the queue

> **Juan Grases commented on 19 March 2020**
>
> > Hi Patricia, it will be better if you open a ticket in our support and we go from there into a call to look into this issue and the sync of sprints (Jira server - cloud)
> 
> Best regards,
> 
> Juan

---

<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, 6:37am UTC](https://community.exalate.com/t/sync-sprints-jira-cloud-to-server/4183/3 "2024-11-06T06:37:25Z")

</div>

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