1
0
-1

Hello,


the sprint sync script from the documentation does not account for the local sprint being closed:


def remoteSprintId = replica.customFields.Sprint?.value?.find { it -> it.state.toUpperCase() != "CLOSED" }?.id
    if(remoteSprintId){
       def localSprintId = nodeHelper.getLocalIssueKeyFromRemoteId(remoteSprintId, "sprint")?.id
         if(localSprintId){
            issue.customFields.Sprint.value = localSprintId
        }
    }


If localSprint is closed then exalate will throw the following error:

services.jcloud.exception.UpdateIssueJiraCloudException: Could not update issue 


because Closed sprints cannot be assigned to issues. How to solve this here?

    CommentAdd your comment...