website logo
⌘K
Help and Documentation
Introduction to Rootly
Quick Start Guide
Managing Incidents
Manage Action Items
Managing Users
Managing Teams
Status Pages
Timeline
Postmortems
Playbooks
Workflows
Alerts
Pulses
Metrics
API Reference
Webhooks
Liquid
Contacting Support
Integrations
Overview
Slack
Mattermost
PagerDuty
Opsgenie
VictorOps (Splunk On-Call)
Service Now
Nobl9
Jira
Jira ( On premise )
Confluence
Confluence ( On premise )
Google Docs
Notion
Quip
Dropbox Paper
Asana
Linear
Freshservice
Trello
Shortcut ( formerly Clubhouse )
Statuspage.io
Airtable
Zendesk
Zoom
Webex
Microsoft Teams
GoToMeeting
Google Meet
Twitter
GitHub
Gitlab
AWS Elastic Beanstalk
Heroku
Kubernetes
Datadog
Honeycomb
Backstage
New Relic
Looker
Grafana
Email
SMTP
SendGrid
Sentry
Rollbar
Zapier
API
Terraform
Pulumi
HashiCorp Vault
SSO (Okta, Azure, Auth0, etc.)
SCIM
Docs powered by
Archbee
Help and Documentation
Liquid

Available filters

48min

Rootly built-in

find

  • find: 'arg1', 'arg2'
    • arg1. String
    • arg2. String
JS
|
// Pretending object is the following object [{"id": "apple"}, {"id": "banana"}]
{{ object | find: 'id', 'banana' }}
// Output
// {"id": "banana"}


get

  • get: 'arg'
    • arg. String
JS
|
// Pretending object is the following object {"id": "id", "incident": {"title": "Something is on fire!"}
{{ object | get: 'incident.title' }}
// Output
// Something is on fire!


smart_date

  • smart_date: 'arg'
    • arg. String
  • This is using https://github.com/mojombo/chronic under the hood.
JS
|
{{ 'now' | smart_date: 'tomorrow' }}
// Output
// 2023-06-29 12:00:00 -0700


slice

  • slice: '*arg'
    • arg. String
    • ... As many args as you need
JS
|
// Pretending object is the following object {"key": "hello", "value": "world", "foo": "bar"}
{{ object | slice: 'key' }}
// Output
// {"key": "hello"}
{{ object | slice: 'key', 'foo' }}
// Output
// {"key": "hello", "foo": "bar"}


flatten

  • flatten
JS
|
// Pretending object is the following object ["1", "2", ["3"]]
{{ object | flatten }}
// Output
// ["1","2","3"]


to_values

  • to_values: 'key'
    • key is optional
JS
|
// Pretending object is the following object {"key": "hello", "value": "world"}
{{ object | to_values }}
// Output
// [{"value":"world"}]
{{ object | to_values: 'key' }}
// Output
// [{"value":"hello"}]


to_json

  • to_json
JS
|
// Pretending object is the following object [{"key": "hello", "value": "world"}]
{{ object | to_json }}
// Output
// [{"key":"hello","value":"world"}]


to_iso8601

  • to_iso8601
JS
|
{{ incident.created_at | to_iso8601 }}
// Output
// 2023-04-10 00:00:00 -0700


distance_of_time_in_words

  • distance_of_time_in_words: 'arg'
    • arg. String (optional)
JS
|
{{ 60 | distance_of_time_in_words }}
// Output
// 1 minute
{{ 'May 1, 2010' | distance_of_time_in_words: 'May 3, 2010' }}
// Output
// 2 days


distance_of_time_in_words_to_now

  • distance_of_time_in_words_to_now
    
JS
|
{{ 'May 1, 2010' | distance_of_time_in_words_to_now }}
// Output
// over 12 years


in_time_zone

  • in_time_zone: 'time_zone'
    • time_zone. Any timezone listed in Timezones
JS
|
{{ now | in_time_zone: 'Europe/London' | date: '%Y-%m-%d %H:%M %Z' }}


See Timezones for available values

to_table

  • to_table: 'table_type', 'title', 'time_zone', 'format'
    • table_type is either events or action_items
    • time_zone. Any timezone listed in Timezones
    • format can be ascii , markdown , html, atlassian_markdown
JS
|
{{ incident.events | to_table: 'events', 'Hello world', 'America/Los_Angeles', 'markdown' }}


regex_replace

Global replace

  • regex_replace: 'regex', 'replacement'
    • regexp a ruby regular expression
    • replacement a ruby regular expression
JS
|
{{ 'foo bar 123 456' | regex_replace: '\\d+', 'baz' }}
// Output
// foo bar baz baz


regex_replace_first

First match replace

  • regex_replace_first: 'regex', 'replacement'
    • regexp a ruby regular expression
    • replacement a ruby regular expression
JS
|
{{ 'foo bar 123 456' | regex_replace: '\\d+', 'baz' }}
// Output
// foo bar baz 456


regex_remove

Global match remove

  • regex_remove: 'regex'
    • regexp a ruby regular expression
JS
|
{{ 'foo bar 123 456' | regex_remove: '\\d+' }}
// Output
// foo bar


regex_remove_first

First match remove

  • regex_remove_first: 'regex'
    • regexp a ruby regular expression
JS
|
{{ 'foo bar 123 456' | regex_remove_first: '\\d+' }}
// Output
// foo bar  456


dasherize

  • dasherize
JS
|
{{ 'hello_world' | dasherize }}
// Output
// hello-world


parameterize

  • parameterize
    • separator (default to '-')
JS
|
{{ 'Hello World' | parameterize }}
// Output
// hello-world
{{ 'Hello World' | parameterize: '_' }}
// Output
// hello_world


camelize

  • camelize
JS
|
{{ 'hello world' | camelize }}
// Output
// Hello world


titleize

  • titleize
JS
|
{{ 'hello world' | titleize }}
// Output
// Hello World


singularize

  • singularize
JS
|
{{ 'cars' | singularize }}
// Output
// car


pluralize

  • pluralize
JS
|
{{ 'car' | pluralize }}
// Output
// cars


humanize

  • humanize
JS
|
{{ '0' | humanize }}
// Output
// No
{{ '1' | humanize }}
// Output
// Yes
{{ 'incident_management' | humanize }}
// Output
// Incident Management


Liquid built-in​

  • https://shopify.github.io/liquid/



Updated 15 Jul 2023
Did this page help you?
PREVIOUS
Liquid
NEXT
Team Variables
Docs powered by
Archbee
TABLE OF CONTENTS
Rootly built-in
find
get
smart_date
slice
flatten
to_values
to_json
to_iso8601
distance_of_time_in_words
distance_of_time_in_words_to_now
in_time_zone
to_table
regex_replace
regex_replace_first
regex_remove
regex_remove_first
dasherize
parameterize
camelize
titleize
singularize
pluralize
humanize
Liquid built-in​
Docs powered by
Archbee