filterByIssueType()

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

Bash
filterByIssueType(issueList, issueTypes) #Output: Issue list

Examples

Parser expression

Description

Bash
filterByIssueType(subtasks(), "Sub-task")

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

To achieve this, the following functions are used:

Bash
filterByIssueType(linkedIssues(), "Task, New Feature")

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

To achieve this, the following functions are used:

Bash
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.

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

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

issueList

Issue list

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

issueTypes

text

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

Output

This function returns an issue list

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

📚 Use cases and examples