Skip to end of banner
Go to start of banner

countIssues

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Availability

This routine is available starting with katl-commons 2.5.15 / 2.6.7.

This routine is available for Jira server and cloud deployment options.

Syntax

countIssues(jql [, overrideSecurity])

Description

Returns the number of issues that matched the search query.

Parameters

Parameter name

Type

Required

Description

search query

string

Yes

Searches query containing the details of the returned issues.

overrideScuritybooleanNo

Set to true to bypass any issue security.

Availability

This param is available starting with version 4.8.0.10 of Sil Engine .

Return type

number

Returns the number of issue keys that match the specified jql.

Example

Example 1

string jql;
jql = "project = PRJ AND reporter in membersOf('Employees') AND status in (Open, 'In Progress', Reopened, Resolved, 'On hold', Assigned, 'Internal QA', 'Results rejected', 'Tested and not delivered', 'Tested and delivred')";
countIssues(jql);

Result: The number of issues that are in the project PRJ, with the reporter included in Employees group and the status being one of the above.

Notes

For the search query use apostrophe(') instead of quotes(") and double backslashes(\ \ )for escaping characters (instead of a single backslash).

See also

  • No labels