I offer paid 30 mins or 60 mins 1-1 consultancy calls.
Jira Courses, Training and Consulting: Sparxsys Trainings
Thanks for coming here, I hope you are enjoying learning here, I have also written some books in case you want to learn a bit more :)
If you need my help with Drupal, Linux, Jira, Scripting, Automation or want to contact me then raise a ticket for me please :) and I will get back to you, promise. At Sparxsys we provide Atlassian consultancy services, reach out to me at ravi at sparxsys dot com

Mastering Date Calculations in Jira Cloud Automation

Date calculations are essential for operational insights, such as tracking ticket age or due dates. Manual calculations fail to scale, making Jira Cloud automation a vital tool for business efficiency.

Setting Up Your First Automation Flow

To calculate date differences, start by configuring a trigger—such as a status transition—and pairing it with an "Edit Issue" action. Target a custom field to store the result, ensuring you have a clean setup for your data.

Writing the Smart Value Formula

Use Jira’s smart values to compute time spans. The core formula uses now (the current date) and a secondary date field (like issue.created). Appending .diff("days") calculates the exact duration. Remember to add .abs to your formula to ensure results are always positive, preventing confusing negative numbers on your dashboards.

Best Practices for Testing and Deployment

Before going live:

  • Always test formulas in a staging environment or with a dummy issue.
  • Print outputs to a comment field first to verify accuracy before overwriting custom fields.
  • Use Jira audit logs to debug syntax errors if the automation fails to update fields as expected.

Enterprise Applications and Beyond

Automated date tracking enables powerful use cases:

  • SLA Compliance: Track how long tickets are overdue.
  • Performance Metrics: Measure response times to identify process bottlenecks.
  • Velocity Tracking: Gain insights into how long issues spend in specific statuses.

Adopt these practices to streamline your project management workflows and gain deeper visibility into your team's performance.

Subscribe

* indicates required

Please confirm that you would like to from Sparxsys:

You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices.

Want to contact me?