← Back to Support

Automation Template Variables

Template variables let you include dynamic data in your automation actions. Use them in comment text, notification messages, and Slack messages to create personalised, context-aware automations.

How to use variables

Wrap the variable name in double curly braces: {{variable.name}}

Variables are replaced with real values when the automation runs. If a variable can't be resolved (e.g. the task has no assignee), the raw variable text is left in place.

Example

{{task.title}} has been completed in {{project.name}}!

↓ becomes ↓

Fix login page bug has been completed in Website Redesign!

Available variables

VariableDescriptionExample value
{{task.title}}The title of the task that triggered the automationFix login page bug
{{task.status}}The current status of the task (e.g. TODO, IN_PROGRESS, DONE)DONE
{{task.priority}}The priority level of the taskHIGH
{{task.dueDate}}The due date of the task in ISO format2026-04-15T00:00:00.000Z
{{task.url}}A direct link to the task in Gravitaskhttps://app.gravitask.net/projects/abc/taskId=def
{{task.assignee.name}}The full name of the person assigned to the taskJane Smith
{{task.assignee.email}}The email address of the assigneejane@acme.com
{{project.name}}The name of the project the task belongs toWebsite Redesign
{{project.id}}The unique identifier of the projectabc-123-def
{{workspace.name}}The name of the workspaceAcme Inc

Where variables work

Template variables can be used in the following automation action fields:

  • Add comment→ Comment text
  • Notify assignee→ Message
  • Notify user→ Message
  • Send Slack message→ Message
  • Send Slack DM→ Message
  • Create GitHub issue→ Issue title

Variables are not supported in configuration fields like status values, priority levels, or assignee selectors — these use dropdown selections instead.

Full examples

Notify assignee on completion

Notify assignee

Template:

✅ {{task.title}} has been completed in {{project.name}}!

Output:

✅ Fix login page bug has been completed in Website Redesign!

Add comment with task link

Add comment

Template:

{{task.assignee.name}} completed {{task.title}}. View it here: {{task.url}}

Output:

Jane Smith completed Fix login page bug. View it here: https://app.gravitask.net/projects/...

Slack notification for urgent tasks

Send Slack message

Template:

🚨 {{task.title}} has been marked as {{task.priority}} priority by {{task.assignee.name}}

Output:

🚨 Fix login page bug has been marked as URGENT priority by Jane Smith

Overdue task reminder

Add comment

Template:

⚠️ {{task.title}} was due on {{task.dueDate}} and is now overdue. Please update the status.

Output:

⚠️ Fix login page bug was due on 2026-04-15 and is now overdue. Please update the status.

Tips

  • 1.Variables are case-sensitive. {{task.Title}} will not work — use {{task.title}}
  • 2.If a task has no assignee, {{task.assignee.name}} will appear as the literal text in your message. Assign tasks before automations run.
  • 3.You can combine multiple variables in a single message: {{task.assignee.name}} completed {{task.title}} in {{project.name}}
  • 4.Use {{task.url}} to include a clickable link to the task in Slack or comment notifications.