Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function filters a given issue list by the provided issue types.


Code Block
languagebash
titleSyntax
linenumberstrue
filterByIssueType(issueList, issueTypes) #Output: Issue list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
filterByIssueType(subtasks(), "Bug, Improvement, New FeatureSub-task")


This example returns the list of sub-tasks with issue types Bug, Improvement or New Featurewith  issue type Sub-task.

To achieve this, the following functions are used:


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


This example returns a list of linked issues with issue type 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
issueList

Status
subtletrue
titleIssue list

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

Status
subtletrue
titletext

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



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 function returns an empty

Status
subtletrue
titleissue list
.



Use 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