Type: Function
Function: LENGTH_GREATER_THAN
Syntax: LENGTH_GREATER_THAN(list, number)
Description: Returns true if the number of values in the list is greater than the number.
The list is a field holding several values, such as label_names or assignee_usernames. Its number of values is the one LENGTH returns.
LENGTH_GREATER_THAN(list, number) is the same as GREATER_THAN(ARRAY_LENGTH(list), number).
It is the same condition as the length > filter of the insight designer (see Using filters). Use it in a custom formula, to count, group or label records on that condition, or as a filter in a query sent through the Keypup API or MCP server.
Sample usage:
LENGTH_GREATER_THAN(requested_reviewer_usernames, 1)returnstruefor the pull requests with more than one requested reviewer.
