Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with Power Scripts 4.6.0.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=createSprint+-+15480595
widthauto

The use of this function requires the Power Scripts for Jira add-on be installed and licensed.

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

createSprint(rapidViewId, sprintName)

or

...

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Creates a new sprint for the provided rapid view.

Creates a new sprint for the provided rapid view.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

rapidViewId

...

Number

Yes

The rapid view id.

sprintName

...

String

Yes

The name of the sprint.

startDate

...

Date

Yes

The start date of the sprint.

endDate

...

Date

Yes

The end date of the sprint.

Return

...

Type

numberNumber

Returns the id of the created sprint.

Examples

Example 1

When created with this syntax, the new sprint will be in the "feature" state which means that the sprint is not started yet.

Code Block
number newSprintId = createSprint(1, "Sprint");
runnerLog("The sprint was created with the id: "+newSprintId);

Result: A new sprint with the name "Sprint" is created on the rapid vie with the id 1.

Note

When created with this syntax, the new sprint will be in the "feature" state which means that the sprint is not started yet.

...

Example 2

By entering the starting date and the ending date the script will be automatically planned and its state will be "active".

Code Block
number newSprintId = createSprint(1, "Sprint", "06/Apr/19 10:00 AM", "20/Apr/19 08:00 AM");
runnerLog("The sprint was created with the id: "+newSprintId);

Result: A new sprint with the name "Sprint" is created on the rapid view with id 1 and the starting dateĀ date 06/Apr/19 10:00 AM and the ending date 20/Apr/19 08:00 AM.

Note

...

1. If there is no board with that name or id, an exception will be raised. 2. The user must have sufficient permissions to view the board.

See also

Filter by label (Content by label)
showLabelsfalse
max1225
showSpacefalse
cqllabel = "sprintagile_routine" and space = currentSpace ( )
labelsarray_routines

We've encountered an issue exporting this macro. Please try exporting this page again later.