Versions Compared

Key

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


Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short description

Filters 

Status
subtletrue
titleissue list
in argument issues, leaving only those ones in projects present at argument projects.

Output Statussubtletruetitleissue list UI Text Box
sizemedium
typeinfo

Filters 

Status
subtletrue
titleissue list
in argument issues, leaving only those ones in projects present at argument projects.

Argument projects is a comma-separated list of This function filters a given issue list by the provided project keys.


Code Block
languagebash
titleSyntax
linenumberstrue
filterByProject(issue list issuesissueList, string projectsprojectKeys) #Output: Issue list


UI Expand
titleExamples


returns the list This example returns a list of linked issues belonging to projects with keys CRM or HR.

To achieve this, the following functions are used:

Parser expressionDescription


Code Block
languagebash
linenumberstrue
filterByProject(linkedIssues(), "CRM, HR")


The function returns the

Status
subtletrue
titleissue list


Code Block
languagebash
linenumberstrue
filterByProject(linkedIssues("blocks"), "SUPPORT")


This example returns a list of blocked issues in project SUPPORT.

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>issueList

Status
subtletrue
colourGrey
titledata type

Parameter description.

issue list

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

Status
subtletrue
colourGrey
title

data type
text

A text with project keys. If several project keys should be checked, they have to be provided as a comma separated listParameter description.



UI Expand
titleOutput

The This function returns an

Status
subtletrue
titleissue list



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_filterbyproject" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround

Code Block
let list = issue.links.map(l=>l.linkedIssue);
list.filter(i=> ["SGC", "CT"].includes(i.project.key))

Where SGC and CT are project keys.




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

Output

Status
subtletrue
titleissue list

Available since

Status
subtletrue
colourRed
titleneeds lookup

Label