List
Applies an Operation to a list as a whole. That is the difference between it and the transforms for single values: given a list of labels, Text lowercases each label, and List joins them into one piece of text. An operation that looks at items can look at a field of each instead, by a slash-separated Path, so a list of issues can be totaled by their story points or sorted by their due dates. An item without a value means an empty one: null, empty text, or an empty list or object. A value that isn't a list fails the step.
| Operation | Example | Produces |
|---|---|---|
| Pick Item | bug, frontend, ux at Position 1 → bug | An item |
| Count | bug, frontend, ux → 3 | A number |
| Join | bug, frontend, ux with a Final Separator of and → bug, frontend and ux | Text |
| Extract From Each | Three authors, Path name → Ana, Ben, Cy | A list |
| Filter | Issues whose status Equals Done → only those issues | A list |
| Sort | Articles by publishDate, Descending → newest first | A list |
| Remove Duplicates | news, sport, news → news, sport | A list |
| Slice | The first Count 3 of ten headlines → three headlines | A list |
| Aggregate | The sum of fields/storyPoints → 21 | A number |
Pick Item counts positions from 1, with negative numbers counting from the end. Extract Path and the Path Extraction source count list positions from 0, so items/0/name is the first item's name.
The List reference describes each field, in the same words its Guide icon shows in the tool.
Pick Item
Picks the first item, the last, or the one at a Position: 1 for the first, and a negative number counts from the end, -1 for the last. A position the list doesn't reach produces null. Produces an item.
Count
Counts the items. Produces a number.
Join
Joins the items into one piece of text with Separator, , unless you change it, between them, and Final Separator, when given, before the last, so and makes bug, frontend and ux. Numbers and true or false are joined as their text, and items without a value are left out. Produces text.
Extract From Each
Makes a list of the value at Path in each item, such as each author's name. An item without one gives null in its place. Produces a list.
Filter
Keeps or removes the items for which a Condition holds, testing each item, or the value at Path in it, against Compare To with the same comparisons a Conditional uses, such as keeping the issues whose status equals Done. Produces a list.
Sort
Orders the items, by themselves or by the value at Path, Ascending or Descending. Numbers sort as numbers, timestamps as moments, and text alphabetically regardless of case. A list that mixes them puts numbers first, then timestamps, then text, and Descending reverses that. Items without a value go last, and items that tie keep their order. Produces a list.
Remove Duplicates
Leaves out each item that repeats an earlier one, by itself or by the value at Path, compared as a condition's Equals compares values. The first of each keeps its place. Produces a list.
Slice
Keeps the first or last Count items, or skips the first Count and keeps the rest. Produces a list.
Aggregate
Works out the sum, average, minimum, or maximum of the items, or of the value at Path in each. An item without a value is left out, and one that isn't a number fails the step. With no numbers at all, the sum is 0 and the others are null. Produces a number.