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

Type: Function

Function: CONTAINS

Syntax: CONTAINS(list, term|term_list)

Description: Returns true if the list contains the provided value or any of the provided values (if an array is provided).

Sample usage:

  • CONTAINS(label_names, "bug")

  • CONTAINS(label_names, ["bug", "enhancement"]) returns true if the list of labels contains either "bug", "enhancement" or both.

  • CONTAINS(assignee_usernames, "johndoe") returns true if John Doe was found in the list of assignees, otherwise returns false.

Did this answer your question?