Skip to main content

Transforms

A transform reshapes a mapping's value, each one working on what the one before it produced. Transforms put a value into the form the next step needs (a field picked out of an object, a label in place of a code, a default where nothing came through) without a script.

A transform works only on the value it is given. A setting that needs another value, such as a Conditional's Compare To, accepts a variable reference, resolved just before the transform runs.

Apart from Set Value, which is how a mapping supplies a default, the built-in transforms pass an empty value, null, on unchanged, so a field an upstream step left unset doesn't fail the step. Text, Number, Date & Time, Map Values, and Convert work on each item of a list in turn, so one step can lowercase every label in a list, while List works on the list as a whole.

Combining transforms​

Each transform does one thing, and a mapping's transforms run in order, so most reshaping is a short chain:

WantTransforms
A publish date as Sep 18 in a Slack messageDate & Time, Pattern MMM d
A byline from a list of authorsList, Extract From Each name; List, Join with a Final Separator of and
Jira labels as bug, frontend and uxList, Extract From Each name; Text, Change Case to lowercase; List, Join with a Final Separator of and
Unassigned when an issue has no assigneeExtract Path assignee/displayName; Set Value Unassigned, Only When Empty
A priority as an emojiMap Values with Highest to :rotating_light: and High to :warning:, Keep the Value for the rest
A search-result title from a headlineText, Clean Whitespace; Text, Truncate to 60 characters
A sprint's total story pointsList, Aggregate, the sum of fields/storyPoints
A label for a statusConditional, status Equals done, with Set Value Published under Then and Draft under Else
A byline mapping: List, Extract From Each name, then List, Join with a Final Separator of and
A step in a run, its byline mapping's trace open: the authors, their names as a list, then the names joined

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.