Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo
This function filters the given issue list by the provided resolutions.


Code Block
languagebash
titleSyntax
linenumberstrue
filterByResolution(issueList, resolutions) #Output: Issue list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
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:


Code Block
languagebash
linenumberstrue
filterByResolution(linkedIssues(), "") 


This example returns an issue list with all linked issue that don't have a resolution set.

To achieve this, the following functions are used:


Code Block
languagebash
linenumberstrue
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.

UI Text Box
typetip

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



Code Block
languagebash
linenumberstrue
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:



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

Status
subtletrue
titletext

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



UI Expand
titleOutput

This function returns an

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_filterbyresolution" and space = currentSpace()


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 resolution.
Output

Status
subtletrue
titleissue list

Available since

Status
subtletrue
colourRed
titleneeds lookup

Label