Type: Function
Function: CONTAINS_ONLY
Syntax: CONTAINS_ONLY(list, term|term_list)
Description: Returns true if every element in the list matches at least one of the provided values. Unlike CONTAINS_EXACTLY, it does not require all provided values to be present - it only checks that no unexpected values exist.
By strict definition, an empty list will return true.
Sample usage:
CONTAINS_ONLY(label_names, "bug")returnstrueiflabel_namescontains nothing butbugentries.CONTAINS_ONLY(label_names, ["bug", "enhancement"])returnstrueif every label is eitherbugorenhancement. The list does not need to contain both.CONTAINS_ONLY(assignee_usernames, ["john", "jenny"])returnstrueif every assignee isjohnorjenny, otherwise it returnsfalse.CONTAINS_ONLY(["bug", "bug"], ["bug", "enhancement"])returnstruebecause every element in the first array is found in the second one.CONTAINS_ONLY(["bug", "enhancement", "security"], ["bug", "enhancement"])returnsfalsebecausesecurityis not in the allowed values.CONTAINS_ONLY([], ["bug", "enhancement"])returnstruebecause the tested array has no elements.
