/
addIssueToSprint

addIssueToSprint

Syntax

addIssueToSprint(issue key, sprint id)

Description

Adds an issue to a sprint

Parameters

Parameter name

Type

Required

Description

issue key

string

Yes

The issue key

sprint idnumberYesThe sprint id

Return type

boolean

'True' if the operation succeeded, 'false' otherwise.

Example

boolean result = addIssueToSprint("AGILE-3", 5);

Notes

  1. If there is no issue with that issue key, an exception will be raised.
  2. If there is no sprint with that sprint id, an exception will be raised.
  3. The user must have enough permissions to perform this action.

See also

Related content

JQL Support (Cloud)
Read with this
addIssueToSprint
More like this
Working with Standard Fields
Working with Standard Fields
Read with this
Getting started with Power Scripts™ for Jira cloud
Getting started with Power Scripts™ for Jira cloud
Read with this
addIssueToSprint
More like this