Skip to main content
You can use action item variables with genius workflows:

Variables

Use our new Liquid Markup explorer to navigate through all action item variables.
We are using Liquid template language and available variables are:
Ruby

Custom Fields

Action items can carry custom field values. Two variables expose them:

custom_fields_by_slug

The simplest way to access a value. Keys are the field’s slug (lower-cased and hyphenated); single-value fields return a string, while multiple select and tags fields return an array.
Ruby
Values are returned in display form: user/team/service/catalog-backed selections return names, checkboxes return Yes/No, and date fields return formatted dates.

custom_fields

The structured form — an array of selection objects, each containing the form_field definition (name, slug, ID) and its selected values. Useful when you need field metadata alongside values, or a lookup key that survives renames. Liquid’s find and where filters only match on a top-level property — they can’t follow a nested path like form_field.id (that lookup silently returns nothing). Loop over the array and compare inside the loop instead:
Ruby
Reading the value depends on the field type. For free-text values (text, textarea, number, date, etc.), selected_options is a single object whose value holds the entry. For option-backed fields (select, multiple select), selected_options is an array of option objects, each with id and value. Testing selected_options.value distinguishes the two shapes:
Ruby
Fields backed by Rootly records (users, teams, services, catalogs, environments, causes, incident types) do not expose their values through selected_options — read those through custom_fields_by_slug, which returns the record names. For day-to-day templating, prefer custom_fields_by_slug, which normalizes all of this for you — reach for custom_fields only when you need to key off form_field.id or inspect the full selection object.
Custom field slugs are regenerated when a field is renamed. If your templates reference fields by slug, renaming the field will break those references.

Examples

Ruby