CONTAINS_EXACTLY
Tom Azernour avatar
Written by Tom Azernour
Updated over a week ago

Function: CONTAINS_EXACTLY

Syntax: CONTAINS_EXACTLY(list, term|term_list)

Description: Returns true if the list contains ALL and ONLY the provided values (order-insensitive equality).

Sample usage:

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

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

  • CONTAINS_EXACTLY(assignee_usernames, ["john", "jenny"]) returns true if the list of assignees only contains john and jenny, otherwise it returns false.

  • CONTAINS_EXACTLY(["enhancement", "bug"], ["bug"]) returns false because the first array is not exactly the same as the second one.

  • CONTAINS_EXACTLY(["enhancement", "bug"], ["bug", "enhancement"]) returns true because the comparison is order-insensitive.

Did this answer your question?