filterByResolution()

This function filters the given issue list by the provided resolutions.


Bash
filterByResolution(issueList, resolutions) #Output: Issue list


Examples

Parser expression

Description

Bash
filterByResolution(subtasks(), "Won't Fix, Cancelled") 

This example returns the issue list of sub-tasks with resolutions Won't Fix or Cancelled.

To achieve this, the following functions are used:

Bash
filterByResolution(linkedIssues(), "") 

This example returns an issue list with all unresolved linked issues.

To achieve this, the following functions are used:

Bash
filterByResolution(linkedIssues(), resolution(10000))


This example returns an issue list with all linked issue that have the resolution with id 10000 set.

The function resolution() resolves the provided ID and parses the resolution name.

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

Bash
filterByResolution(siblingSubtasks(), %{issue.resolution})

This example returns an issue list with all sibling sub-tasks that have the same resolution like the current issue.

To achieve this, the following functions are used:

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()

).

resolutions

text

Any given resolution name. Several resolutions can be provided as comma separated list.

Output

This function returns an issue list


📚 Use cases and examples