Capture and store the approval timestamp in a Jira Cloud custom field

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

Summary

Learn how to automatically capture and store the approval timestamp in a Jira custom field.

Solution

What problem does this workaround solve?

The core issue is the need to automatically fetch and record the approval date and time when a ticket is approved in Jira, storing this information in a custom field named "Approval Timestamp". The challenge was to implement this functionality given that Jira does not natively support capturing approval timestamps directly into custom fields.

Creating a custom field and the automation to store the value

  1. Create a custom field named "Approval Timestamp" of type Date Time Picker and associate it with the relevant project.

  2. Set up an automation rule with the trigger set to 'Approval completed'.

  3. Use the 'Edit issue' action within the automation to populate the "Approval Timestamp" field with the current date and time, utilizing Jira's smart values - "{{now.jiraDateTime}}" for date and time.

    1. The rule is enabled and runs when an approval is completed. The rule adds the current date and time to the audit log and updates the Approval Timestamp field with the same value.
  4. Test the automation on a new ticket to ensure the "Approval Timestamp" field is correctly populated upon ticket approval.

This solution applies only to new tickets; it does not retroactively apply to tickets approved in the past.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.