Automation For Jira - How to warn a user when the total time logged in a ticket exceeded a certain value

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

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

This article details steps on how to create an automation rule that will warn a user if the total time logged in a Jira issue exceeds a certain value. This action can useful to Project admins or the user working on the ticket, since they will be aware of Jira issues that might require more work than others.

Solution

The automation rule can be configured as explained below, assuming that the threshold for the total logged time is 4h (=14400 seconds):

  • Add the Work Logged trigger

  • Add an Advanced Compare Condition with the parameters below:

    • First value:

      1 {{triggerIssue.worklog.timeSpentSeconds.sum}}

    • Condition : greater than

    • Second value: 14400

  • Add an action that occurs if the condition is successful, that is meant to notify the users involved in the Jira issue. For example, you can use:

    • Either the Comment on issue action with the message "The time logged in this ticket exceeded 4h!"

    • Or the Send Email action with similar message

The suggested automation rule will look like this:

How to warn a user when the total time logged in a ticket exceeded a certain value rule example

Updated on March 4, 2025

Still need help?

The Atlassian Community is here for you.