Versions Compared

Key

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


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 description

Returns the 

Status
subtletrue
titleissue list
of epics under where those issues with keys in issue_keys are. If some of those issues are sub-tasks, the epic of their parent is returned.

Output Statussubtletruetitleissue list UI Text Box
sizemedium
typeinfo

The This function filters

Status
subtletrue
titleissue list
in argument issues, leaving only those issue types appearing in argument issue_types. Argument issue_types is a comma-separated list of issue type names.a given issue list by the provided issue types.


Code Block
languagebash
titleSyntax
linenumberstrue
filterByIssueType(issue list issuesissueList, text issue_typesissueTypes) #Output: Issue list


UI Expand
titleExamples


The function returns the of sub-tasks with issue types Bug, Improvement or New Feature
Parser expressionDescription


Code Block
languagebash
linenumberstrue
filterByIssueType(subtasks(), "Bug, ImprovementSub-task")


This example returns the list of sub-tasks with  issue type Sub-task.

To achieve this, the following functions are used:


Code Block
languagebash
linenumberstrue
filterByIssueType(linkedIssues(), "Task, New Feature")
Status
subtletrue
titlelist


This example returns a list of linked issues with issue types Task and New feature.

To achieve this, the following functions are used:


Code Block
languagebash
linenumberstrue
filterByIssueType(linkedIssues(), issueType(10001))


This example returns a list of linked issues with the issue type id 10001.

The function issueType() resolves the provided ID and parses the issue type name.

UI Text Box
typetip

This way the function will still work even if the issue type name might change at some point.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>issueList

Status
subtletrue
titledata type

Parameter description.

Issue list

Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).
issueTypes<parameter>

Status
subtletrue
title

data type
text

A text with an issue type. Several issue types can be provided as comma separated listParameter description.



UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list

If the provided issue list is empty or there is no issue with the given issue type, the The function returns an empty

Status
subtletrue
titleissue list



Image AddedUse cases and examples

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


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround

Code Block
languagebash
let issues = issue.links.map(l=>l.linkedIssue);
issues.filter(i=>i.issueType.name=="Bug")





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

Filters a given issue list by issue type.

Output

Status
subtletrue
titleissue list

Available since

Status
subtletrue
colourRed
titleneeds lookup

Label