Info | ||
---|---|---|
| ||
This routine is available starting with Power Scripts 4.6.0. |
Syntax
updateSprint(sprintId, sprintName)
...
updateSprint(sprintId, sprintName, state, startDate, endDate, completionDate)
Description
Excerpt |
---|
Updates a given sprint. |
Parameters
Parameter name | Type | Required | Description | ||
---|---|---|---|---|---|
sprintId | number | Yes | The sprint id. | ||
sprintName | string | Yes | The new name of the sprint.
| ||
state | string | Yes | The state of the sprint.
| ||
startDate | date | Yes | The start date of the sprint.
| ||
endDate | date | Yes | The end date of the sprint.
| ||
completionDate | date | The completion date of the sprint. |
...
Code Block |
---|
number newSprintId = createSprint(1, "Sprint"); // it's in future state initially addIssueToSprint("AGILE-1", newSprintId); updateSprint(newSprintId, "", "active", "06/Apr/19 10:00 AM", "20/Apr/19 08:00 AM"); //the sprint is planned and started string nameOfUpdatedSprint = sprintName(newSprintId); date startDate = sprintStartDate(newSprintId); date endDate = sprintEndDate(newSprintId); runnerLog("The sprint" + nameOfUpdatedSprint + "was created and planned!); // the name remains "Sprint" runnerLog("It starts on " + startDate + " and ends on " + endDate); |
Example 3
Code Block |
---|
umbernumber newSprintId = createSprint(1, "Sprint", "06/Apr/19 10:00 AM", "20/Apr/19 08:00 AM"); // it's in active state addIssueToSprint("AGILE-1", newSprintId); updateSprint(newSprintId, "", "closed", "", "","20/Apr/19"); // Spring was completed on 20/Apr/19 date completiontDate = sprintCompleteDate(newSprintId); runnerLog("Sprint was completed on " + completionDate); |
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|
...