FUNCTION | RETURNED VALUE |
---|---|
filterByPredicate(issue list l, boolean expression predicate) : issue list | Returns a list with issues in l that validate predicate. Argument predicate is a boolean expression, where references to field values in l are done using prefix ^ for field codes. Examples of field references: ^%{00000} is field code for Summary, and ^{00068} is field code for Original estimate of issues in argument l. Examples of usage: filterByPredicate(subtasks(), ^%{00094} in %{00094}) returns the list of subtasks with selected Components in current issue's selected components. filterByPredicate(linkedIssues("blocks"), %{00028} = null AND ^{00017} < {00017}) returns the list of unresolved blocked issues with priority higher than current issue's priority. |
filterByPredicate(number list l, boolean expression predicate) : number list | Returns a list with numbers in l that validate predicate. Argument predicate is a boolean expression, where ^ is used for referencing numeric values in argument l. Examples: filterByPredicate([1, 2, 3, 4], ^ > 2) returns values greater than 2, i.e., [3, 4] filterByPredicate([1, 2, 3, 4], remainder(^, 2) = 0) returns even values, i.e., [2, 4] |
filterByPredicate(string list l, boolean expression predicate) : string list | Returns a list with strings in l that validate predicate. Argument predicate is a boolean expression, where ^% is used for referencing string values in argument l. Examples: filterByPredicate(["book", "rose", "sword"], length(^%) > 4) returns ["sword"]. filterByPredicate(["book", "rose", "sword"], ^% in %{00000} OR ^% in %{00001}) returns a list with those strings in first argument that also appear in issue Summary or Description. |