Pivot Report
Dynamically restructures data for better insights with Jira Assistant Pivot Reports
Browse this sectionPivot Report / Filters
Planning
Reports
Miscellaneous
Filters
Introduction
Filters are a powerful tool that allow you to precisely filter issues used in groups. You can write SQL-like filters in the text box provided for this purpose.
Filter Validations
Filter validations have been implemented to prevent syntax errors and incompatible comparisons, ensuring accurate reports. Key points regarding filter validations include:
- Case Insensitivity: Validations are case-insensitive, so it is not necessary to use the same case for fields or values in filters.
- Validation Restrictions: Validations restrict the use of invalid fields and incompatible field combinations.
- Validated as you type: the filter is validated while you type. An error is shown below the filter box, or "Filter is valid" when it is correct. Reports with invalid filters are not generated and the errors are listed instead.
Field names
- Native fields are referred by their key, e.g.
status,assignee,createdortimespent. - Custom fields are referred by their name or by their id, e.g.
`Story Points`orcustomfield_10016. Names having spaces must be wrapped in backticks. - Derived fields are referred by their path, e.g.
worklog.author,worklog.timeSpentSeconds,comment.createdorfixVersions.name. - Use the icon next to a field in the fields list to copy its name in the right form.

Comparison Operators
Filters allow you to use a variety of SQL-like common comparison operators. Below are some examples of how to use these operators for filtering, similar to a WHERE clause in SQL:
- = (Equal): Filter for issues with a specific value.
Example:
Priority = 'High' - != (Not Equal): Exclude issues with a specific value.
Example:
Status != 'Closed' - in: Filter for issues with values in a given list.
Example:
Assignee in ('User1', 'User2') - between: Filter for numerical or datetime fields within a specific range.
Example:
DueDate between '2023-01-01' and '2023-03-31' - > (Greater Than): Filter for issues with values greater than a specified threshold.
Example:
StoryPoints > 5 - < (Less Than): Filter for issues with values less than a specified threshold.
Example:
Created < '2023-06-01' - >= (Greater Than or Equal To): Filter for issues with values greater than or equal to a specified threshold.
Example:
DueDate >= '2023-09-01' - <= (Less Than or Equal To): Filter for issues with values less than or equal to a specified threshold.
Example:
ResolutionDate <= '2023-08-15' - like: Filter for issues with string fields that contain a specific substring. Use
%as the wildcard. The text must have at least three characters other than the wildcards.Example:
Summary like '%bug%'
Combine conditions using and and or, and use brackets to group them, e.g. (status = 'Open' or status = 'Reopened') and priority in ('High', 'Highest'). Values can be compared only with values of a compatible type, e.g. a date field with a date, and the range operators (>, <, between) can be used only with number, date and time spent fields.
Functions
Elevate your filtering experience with Jira Assistant's feature-rich filter functions. In addition to the standard filtering options, these functions are tailored to empower you in enhancing and fine-tuning your filters. It's important to note that these specialized functions are purpose-built to amplify filter functionality and are not intended for use within Jira Query Language (JQL). By embracing these functions, you gain access to an array of advanced filtering capabilities, enabling you to precisely refine your issue selection to align perfectly with your requirements within the intuitive Pivot report.
Take a look at the existing array of functions supported by Jira Assistant's Pivot Report. If you have specific use cases or ideas for additional functions, feel free to reach out to our developer. Your valuable input can help us enhance your reporting experience!
- parameters(paramName: string): anyDescription: This function empowers you to dynamically customize report generation by allowing the dynamic input of parameters. As a result, you can effortlessly filter issues without the need to modify report filters manually each time. You won't have to worry about parameter creation either. When you utilize a parameter, the report automatically recognizes its data type and enables you to specify a value during report generation. The name of the parameter must have 3 to 25 characters. Using the same name in more than one filter asks for the value only once.Return Type: any (based on where you use it)Input Parameters:
- paramName (string): The name of the parameter.
Example Usage: assignee = parameters("Assignee list") or worklog.author in (parameters("User List")) - sum(values: array of (number | timespent)): (number | timespent)Description: This function calculates the sum of numerical or timespent values in an array.Return Type: number or timespentInput Parameters:
- values (array of number or timespent): An array of numerical or timespent values.
Example Usage: timespent > sum(worklog.timeSpentSeconds) - avg(values: array of (number | timespent)): (number | timespent)Description: This function calculates the average of numerical or timespent values in an array.Return Type: number or timespentInput Parameters:
- values (array of number or timespent): An array of numerical or timespent values.
Example Usage: avg(worklog.timeSpentSeconds) > 3600 - min(values: array of (number | timespent | date | datetime)): (number | timespent | date | datetime)Description: This function finds the minimum value among numerical, timespent, date, or datetime values in an array.Return Type: number, timespent, date, or datetimeInput Parameters:
- values (array of number, timespent, date, or datetime): An array of values of various types.
Example Usage: min(dueDate) > startDate(parameters("Due date range")) - max(values: array of (number | timespent | date | datetime)): (number | timespent | date | datetime)Description: This function finds the maximum value among numerical, timespent, date, or datetime values in an array.Return Type: number, timespent, date, or datetimeInput Parameters:
- values (array of number, timespent, date, or datetime): An array of values of various types.
Example Usage: max(dueDate) < endDate(parameters("Due date range")) - first(values: array of any): anyDescription: This function returns the first element of an array.Input Parameters:
- values (array of any): An array of values.
Example Usage: first(key) - last(values: array of any): anyDescription: This function returns the last element of an array.Input Parameters:
- values (array of any): An array of values.
Example Usage: last(key) - as_date(value: (number | date | datetime | string), format?: string): anyDescription: This function converts a value to a date format using the specified format if provided.Input Parameters:
- value (number, date, datetime, or string): The value to be converted to a date format.
- format (string, optional): The format to use for conversion (optional).
Example Usage: dueDate >= as_date("10/15/2023", "MM/DD/YYYY") - today(value?: (number | string)): (date | datetime)Description: This function returns the start of the current day.Input Parameters:
- value (number or string, optional): Moves the date. A number is the number of days, e.g.
-7. A string is a sign followed by an amount and a unit, e.g."-10d". Units: y (years), Q (quarters), M (months), w (weeks), d (days), h (hours), m (minutes).
Example Usage: created >= today("-10d") or created >= today("-2w") - value (number or string, optional): Moves the date. A number is the number of days, e.g.
- eod(value?: (number | string)): datetimeDescription: This function returns the end of the current day.Input Parameters:
- value (number or string, optional): Moves the date, same as for
today.
Example Usage: created <= eod("-10d") or dueDate <= eod("+2w") - value (number or string, optional): Moves the date, same as for
- startOfDay(value?: (number | string)): datetimeDescription: This function returns the start of the current day. It is the same as
today.Input Parameters:- value (number or string, optional): Moves the date, same as for
today.
Example Usage: updated >= startOfDay("-1w") - value (number or string, optional): Moves the date, same as for
- now(value?: (number | string)): (date | datetime)Description: This function returns the current date and time.Input Parameters:
- value (number or string, optional): Moves the date, same as for
today, e.g."-4h".
Example Usage: dueDate between today("-10d") and now("+1w") - value (number or string, optional): Moves the date, same as for
- date_diff(date1: datetime, date2: datetime, unit?: string): numberDescription: This function calculates the difference between two datetime values (date1 minus date2) in the specified unit (default is "milliseconds"). Units: "years", "months", "weeks", "days", "hours", "minutes" or the short forms "y", "M", "w", "d", "h", "m".Input Parameters:
- date1 (datetime): The first datetime value.
- date2 (datetime): The second datetime value.
- unit (string, optional): The unit for the difference calculation (optional).
Example Usage: date_diff(min(worklog.created), created, "d") > 5 or date_diff(now(), updated, "days") > 30 - startDate(date: daterange): dateDescription: This function returns the start date from a date range parameter.Input Parameters:
- date (daterange): The date range from which to extract the start date.
Example Usage: worklog.created between startDate(parameters("Worklogs between")) and endDate(parameters("Worklogs between")) - endDate(date: daterange): dateDescription: This function returns the end date from a date range parameter.Input Parameters:
- date (daterange): The date range from which to extract the end date.
Example Usage: created between startDate(parameters("Created between")) and endDate(parameters("Created between")) - currentUser(): userDescription: This function returns the currently logged-in user in Jira Assistant.Example Usage: assignee = currentUser()