Last active
April 1, 2025 12:38
-
-
Save ivazin/5df1b77e098b48c555ffddd5c4ef59f4 to your computer and use it in GitHub Desktop.
Update Jira closed sprint name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.greenhopper.service.sprint.Sprint | |
import com.atlassian.greenhopper.service.sprint.SprintManager | |
import com.onresolve.scriptrunner.runner.customisers.JiraAgileBean | |
import com.onresolve.scriptrunner.runner.customisers.WithPlugin | |
@WithPlugin("com.pyxis.greenhopper.jira") | |
@JiraAgileBean | |
SprintManager sprintManager | |
def sprintId = 111222333 | |
def newSprintName = "Sprint new name" | |
def sprint = sprintManager.getSprint(sprintId).getValue() | |
def builder = Sprint.builder(sprint) | |
def updatedSprint = builder.name(newSprintName).build() | |
sprintManager.updateSprint(updatedSprint) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment