To continue, you will first need to integrate with ClickUp if you haven’t already.
Rootly —> ClickUp Workflows
The tasks in this section are intended to be used when creating Incident Workflows. It will execute on changes to the Rootly incident data entity.
Create a ClickUp Task for Incident
Create a ClickUp Subtask for Action Item
Update a ClickUp Task
Update a ClickUp Subtask
Update a ClickUp Subtask
ClickUp —> Rootly Workflows
The tasks in this section are intended to be used when creating Alert Workflows. It will execute on update events sent from ClickUp.
Update Action Item
Data Mapping Syntax
{
{% if alert.data.history_items[0].field == 'name' %}
"title": "{{ alert.data.history_items[0].after }}"
{% endif %}
{% if alert.data.history_items[0].field == 'status' %}
{% if alert.data.history_items[0].after.status == 'complete' %}
"status":"done"
{% else %}
"status":"open"
{% endif %}
{% endif %}
{% if alert.data.history_items[0].field == 'priority' %}
{% if alert.data.history_items[0].after == null %}
"priority":"medium"
{% elsif alert.data.history_items[0].after.priority == 'urgent' %}
"priority":"high"
{% elsif alert.data.history_items[0].after.priority == 'high' %}
"priority":"high"
{% elsif alert.data.history_items[0].after.priority == 'normal' %}
"priority":"medium"
{% else %}
"priority":"low"
{% endif %}
{% endif %}
{% if alert.data.history_items[0].field == 'due_date' %}
{% if alert.data.history_items[0].after != null %}
{% assign date = alert.data.history_items[0].after %}
{% assign dateInSeconds = date | divided_by: 1000 %}
"due_date": "{{ dateInSeconds | date: "%Y-%m-%d" }}"
{%endif %}
{% endif %}
}