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): any
Description: 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.
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 timespent
Input Parameters:
- values (array of number or timespent): An array of numerical or timespent values.
Example Usage: timespent > sum(worklog.timespent)
- 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 timespent
Input Parameters:
- values (array of number or timespent): An array of numerical or timespent values.
Example Usage:avg(timeOriginalEstimate) > 120
- 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 datetime
Input 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 datetime
Input 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): any
Description: 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): any
Description: 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): any
Description: 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 current date or datetime.
Input Parameters:
- value (number or string, optional): An optional value to adjust the current date (optional).
Example Usage: created >= today("-10d") or created >= today("-2w")
- todayEOD(value?: (number | string)): (date | datetime)
Description: This function returns the current date or datetime at the end of the day.
Input Parameters:
- value (number or string, optional): An optional value to adjust the current date (optional).
Example Usage: created <= todayEOD("-10d") or created <= todayEOD("-2w")
- now(value?: (number | string)): (date | datetime)
Description: This function returns the current date or datetime including the time.
Input Parameters:
- value (number or string, optional): An optional value to adjust the current date (optional).
Example Usage: dueDate between today("-10d") and now("+1w")
- date_diff(date1: datetime, date2: datetime, unit?: string): number
Description: This function calculates the difference between two datetime values in the specified unit (default is "milliseconds").
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(created, min(worklog.created), "d") or date_diff(created, min(worklog.created), "M")
- startDate(date: daterange): date
Description: 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): date
Description: 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(): user
Description: This function returns the currently logged-in user in Jira Assistant.
Example Usage: assignee = currentUser()