/
subtasks

subtasks

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

  • This routine is available starting with SIL Engine™ 1.0.
  • This routine is available for Jira server and cloud deployment options.

Syntax

subtasks(issuekey)

Description

Get the list of sub tasks linked to the parent issue.

Parameters

Parameter name

Type

Required

Description

issuekey

string

Yes

Key of the issue.

Return type

string []

Returns a list of issue keys that are subtasks of the specified issue.

Example

Example 1

//Subtasks of the issue "PRJ-32" are : PRJ-192,PRJ-193,PRJ-203.
subtasks("PRJ-32");

Returns: The list of the sub tasks linked to PRJ-32: |PRJ-192|PRJ-193|PRJ-203|

Example 2

subtasks(key);

Returns: The list of the sub tasks linked to the  current issue  in the form similar with the example above.

See also

Related content

Create story subtasks and close them when story is closed
Create story subtasks and close them when story is closed
Read with this
allLinkedIssues
More like this
Require fields in subtasks
Require fields in subtasks
Read with this
linkedIssues
More like this
issueExists
More like this
issueTypesForProject
issueTypesForProject
More like this