This function filters an issue list using the given comparison for number fields.
filterByFieldValue(issueList, numberField, operator, number) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns an issue list with all issues under the current epic that have more than 10 story points assigned to them. Note that To achieve this, the following functions are used: |
|
Bash
|
This example returns an issue list with all sub-tasks that don't have a due date set. To achieve this, the following functions are used: |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
issue list |
Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues()or subtasks()). |
|
|
text |
Any field code representing a number field or a selectable field . |
|
|
operator |
One of the following comparison operators: =, !=, <, <=, > and >=. |
|
|
number |
Any given number or |
Output
This function returns an issue list .
If the issue list is empty or the comparison won't be fullfilled by any issue, the function returns an empty issue list .
Variant for text fields.
filterByFieldValue(issueList, textField, operator, text) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns an issue list with linked issues where the component "Web" is set. To achieve this, the following functions are used: |
|
Bash
|
This example returns an issue list with all sub-tasks that are in one of the specified status: Done, Closed or Canceled. To achieve this, the following functions are used: |
|
Bash
|
This example returns an issue list with all sibling sub-tasks that have the same summary like the current issue. To achieve this, the following functions are used: |
|
Bash
|
This example returns an issue list with all sub-tasks of the current issue that don't have a description. To achieve this, the following functions are used: |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
issue list |
Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues()or subtasks()). |
|
|
text |
Any field code representing a text field or a selectable field . |
|
|
operator |
One of the allowed comparison operators. |
|
|
text |
Any given text or Can also contain a comma separated list with strings. |
Output
This function returns an issue list .
If the issue list is empty or the comparison won't be fullfilled by any issue, the function returns an empty issue list .
If you want to filter by a more complex boolean expression, use the function filterByPredicate().
If you prefer using a JQL query to filter your results you can use issuesFromJQL()
📚 Use cases and examples
| Use case |
|---|
| No content found. |