Skip to main content
CONTAINS_ALL
Tom Williams avatar
Written by Tom Williams
Updated over a year ago

Type: Function

Function: CONTAINS_ALL

Syntax: CONTAINS_ALL(list, term|term_list)

Description: Returns `true if the list contains ALL the provided values.

Sample usage:

  • CONTAINS_ALL(label_names, "bug") returns true if label_names contains the bug label.

  • CONTAINS_ALL(label_names, ["bug", "enhancement"]) returns true if label_names contains both bug and enhancement.

  • CONTAINS(assignee_usernames, ["john", "jenny"]) returns true if both john and jenny are in the list of assignees, otherwise it returns false.

Did this answer your question?