filterByResolution(issueList, resolutions) #Output: Issue list
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.
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.
Parameters used in this function
issueList
resolutions
This function returns an
let list = issue.links.map(l=>l.linkedIssue); list.filter(i=>i.resolution!=null && ["Done", "Resolved"].includes(i.resolution.name))