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
| Variable | Description | Example value |
|---|---|---|
{{task.title}} | The title of the task that triggered the automation | Fix 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 task | HIGH |
{{task.dueDate}} | The due date of the task in ISO format | 2026-04-15T00:00:00.000Z |
{{task.url}} | A direct link to the task in Gravitask | https://app.gravitask.net/projects/abc/taskId=def |
{{task.assignee.name}} | The full name of the person assigned to the task | Jane Smith |
{{task.assignee.email}} | The email address of the assignee | jane@acme.com |
{{project.name}} | The name of the project the task belongs to | Website Redesign |
{{project.id}} | The unique identifier of the project | abc-123-def |
{{workspace.name}} | The name of the workspace | Acme 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 assigneeTemplate:
✅ {{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 commentTemplate:
{{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 messageTemplate:
🚨 {{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 commentTemplate:
⚠️ {{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.
Next step
Ready to try it in Gravitask?
Create a workspace, then come back to this guide when you are ready to configure the workflow.
Keep reading
Related support guides
Helpful next steps from the Gravitask help centre.
AI integration
MCP Setup Guide
Connect Gravitask to AI tools through the Model Context Protocol.
Read guideDeveloper API
REST API Documentation
Build integrations with projects, tasks, comments, time entries, and webhooks.
Read guideTask scheduling
Recurring Tasks
Create repeating tasks for daily, weekly, monthly, and custom schedules.
Read guide