Setting Priority-Based Due Dates in Jira with Automation Smart Values
Learn how to use Jira Automation smart values like plusBusinessDays to set priority-based due dates automatically, while avoiding time zone and execution limit pitfalls.
22 Jun 2026, 12:16 UTC

High-priority bugs rarely arrive with a deadline attached. Someone has to decide when the fix is due, and that decision often depends on whether the person remembers to skip weekends. The result is inconsistent due dates and avoidable triage overhead.
Jira Automation solves this with smart values—double-curly expressions like {{issue.created}} that can perform date arithmetic directly inside a rule. Instead of asking a human to count business days, you can encode the policy once and let the automation engine apply it on every issue.
Calendar Days Versus Business Days
Smart values are placeholders wrapped in double curly braces that reference issue data or system time. For date logic, the most useful starting points are {{now}}, {{issue.created}}, and {{issue.dueDate}}. You chain functions onto these values to shift them forward or backward.
The two functions that matter most for support SLAs are plusDays(n) and plusBusinessDays(n). The first adds calendar days, including weekends. The second skips Saturdays and Sundays. If your team works Monday through Friday, plusBusinessDays is usually the correct choice for internal deadlines, while plusDays fits customer-facing promises that run on a wall-clock schedule.
Worked Example: A Priority-Aware Due Date Rule
Suppose your policy states that Highest priority bugs must be resolved within three business days, and everything else gets five calendar days. You can build this as a single global automation rule.
In Jira Cloud or Data Center 8.13 and later, navigate to Settings → System → Automation. You need Jira administrator or site administrator permissions to create global rules. Choose Create rule, select the Issue created trigger, and add an If condition that checks {{issue.issueType}} equals Bug and {{issue.priority}} equals Highest.
Inside that branch, add an Edit issue fields action, select the Due date field, and enter:
{{issue.created.plusBusinessDays(3)}}
Add an Else branch for all other issues and use:
{{issue.created.plusDays(5)}}
With this rule active, a Highest priority bug created on Monday, 6 October 2026 receives a due date of Thursday, 9 October 2026. A low-priority task created the same Monday receives Saturday, 11 October 2026. The automation engine performs the calculation at trigger time, so the due date reflects the actual creation timestamp rather than a static offset.
The Time Zone Trap
Jira Automation evaluates date smart values against the instance's default time zone. If your Jira site is configured for UTC but your engineering team sits in a single region, a bug filed at 11:00 PM local time may be treated as the next day. When users are spread across multiple zones, the displayed due date can shift by a full day depending on who creates the issue.
You can pin the calculation to a specific zone by appending .toZone('Region/City') to the expression. For example:
{{issue.created.plusBusinessDays(3).toZone('America/New_York')}}
This forces the engine to interpret the creation timestamp in New York time before adding business days. The trade-off is that the due date becomes fixed to that zone's calendar, which may not match the reporter's local working days. If your organization already stores deadlines in a custom UTC date field, keep the smart value simple and handle zone conversion in reporting instead.
Limits and Verification
Two constraints are worth knowing before you rely on this pattern. First, the automation engine imposes an execution time limit per rule. Long, nested smart-value expressions can exceed that limit and cause the rule to fail silently. Keep expressions flat and test them in the Smart values preview pane before saving.
Second, plusBusinessDays understands weekends but not company holidays. A three-business-day deadline that crosses a public holiday will still produce a date that falls on a non-working day. If holiday awareness matters, you must either maintain a lookup list of holiday dates or accept that the rule provides a weekend-aware baseline rather than a true working-day calendar.
To verify the rule, create a test issue in a non-production project that matches the conditions. Open the rule's Audit log and confirm the Edit issue fields action ran successfully. Compare the resulting Due date on the issue with the value shown in the smart-value preview. If the field is empty, check the audit log for a null or invalid smart-value error, which usually means a typo in the expression or a missing field on the issue.
If you need to revert the change, disable the rule from the Automation page. Disabling stops future executions but does not remove due dates already written to existing issues.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.