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


filterByResolution(issueList, resolutions) #Output: Issue list



Parser expressionDescription


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:


filterByResolution(linkedIssues(), "") 


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

To achieve this, the following functions are used:


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.



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:



Parameters used in this function

ParameterInput (data type)Description
issueList

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

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



This function returns an



Use cases and examples



Parser function cloud
Map(question)
Notes

Workaround

let list = issue.links.map(l=>l.linkedIssue);
list.filter(i=>i.resolution!=null && ["Done", "Resolved"].includes(i.resolution.name))







Status
Tech review

Style guide




Short description
Filters a given issue list by resolution.
Output

Available since

Label