Trigger Jira automation based on cumulative time logged on a work item

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

Jira Automation can calculate the total or cumulative time logged on a work item, and trigger additional actions when that time exceeds a certain amount. For example, if you'd like to receive an email notification whenever work items have more than 4 hours logged on them, Automation can help!

Solution

Automation smart value to sum time logged on work

The Smart Value that enables our automation rule is {{triggerIssue.worklog.timeSpentSeconds.sum}}. By using this smart value as a condition in an automation rule, we can fire actions only when this total value exceeds a certain amount.

Let's create an example rule that runs whenever time is logged on work, and will send an email if that value exceeds 4 hours. If you prefer, you can select a different trigger, including Scheduled triggers.

  1. Navigate to your project and select Project settings > Automation > Create rule

  2. Select the Work logged trigger

  3. Select IF: Add a condition and choose the {{smart values}} condition

    1. Set the First value to: {{triggerIssue.worklog.timeSpentSeconds.sum}}

    2. Set the condition to greater than

    3. Set the Second value to 14400

      1. 14400 seconds = 4 hours

  4. Add an Action

  5. Choose the Send email action and configure the email to your liking

For a reference on other Smart Values you can use in the Automation rule, please refer to our documentation: Automation smart values - work items

Updated on April 23, 2025

Still need help?

The Atlassian Community is here for you.