Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo
Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short descriptionReturns the list of sibling

This function returns a list of all sibling 

sub-tasks of the current issue

, i.e., all sub-tasks with the same parent as a current issue, except the current issue.Output Statussubtletruetitleissue listAvailable since

Status
subtletrue
colourBlue
title2.2.1

UI Text Box
sizemedium
typeinfo

.

In case the current issue is not a sub-task, an empty issue list will be returned.


Code Block
languagebash
titleSyntax
linenumberstrue
siblingSubtasks() #Output: Issue list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
siblingSubtasks()


This example returns

This function returns the list of sibling sub-tasks of the current issue, i.e.,

all sub-tasks with the same parent as

a current issue, except

the current one - excluding the current issue.

In case the current issue is not a sub-task, an empty issue list will be returned.



note
UI Expand
titleAdditional information


UI Text Box
type
tip

siblingSubtasks() is the equivalent

to

of

Code Block
subtasks(%{
00041
parent.key})
EXCEPT
 EXCEPT issueKeysToIssueList(%{issue.key})




UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list




UI Text Box
sizemedium
typeinfo

Variant where you can specify an issue list to retrieve the sibling sub-tasks from00015}) , where %{00041} is the Parent's issue key and %{00015} is the Issue key.


Code Block
languagebash
titleSyntax
linenumberstrue
siblingSubtasks(issueList) #Output: Issue list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
siblingSubtasks(linkedIssues())


This example returns all sibling sub-tasks of the currently linked issues.

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxissueList

Status
subtletrue
titledata typeissue list

Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks())Parameter description.



UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list




UI Text Box
sizemedium
typeinfo

The function returns the list of Variant where you can specify a comma-separated list of issue keys to get the sibling sub-tasks of issues in argument issues. Duplicated issues in argument issues are discarded.from.


Code Block
languagebash
titleSyntax
linenumberstrue
siblingSubtasks(issue list issuesissueKeys) #Output: Issue list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
siblingSubtasks("MARKET-1, MARKET-2")


This example returns all sibling sub-tasks of the issues MARKET-1 and MARKET-2, e.g.:

[MARKET-143, MARKET-142, MARKET-139, MARKET-141, MARKET-140, MARKET-138]



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxissueKeys

Status
subtletrue
titledata typetext

A text with comma separated list of issue keysParameter description.



UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list

UI Text Box
sizemedium
typeinfo

Variant where you define issue_keys instead of issues. Argument issue_keys is a comma separated list of issue keys.

Duplicated issue keys in argument issue_keys are discarded.



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_siblingsubtasks" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround

Code Block
languagebash
let parent = issue.parent;
parent.subtasks.filter(s=>s.key!=issue.key)





Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description
Returns all sibling sub-tasks.
Output

Status
subtletrue
titleissue list

Available since
Code Block
languagebash
titleSyntax
linenumberstrue
siblingSubtasks(text issue_keys) #Output: Issue list

Parameters used in this function

UI Expand
titleExamples
UI Expand
titleAdditional information
ParameterInput (data type)Description
xxx
Status
subtletrue
titledata type
Parameter description.
UI Expand
titleOutput
This function returns an

Status
subtletrue
colourBlue
title

issue list

2.2.1

Label