CONTAINS
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") returns true if label_names contains the bug label.

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

  • CONTAINS(assignee_usernames, "johndoe") returns true if johndoe is in the list of assignees, otherwise it returns false.


โ€‹Misc.:
โ€‹list - Seen as collections of comma separated values.

Did this answer your question?