Capture and store the approval timestamp in a Jira Cloud custom field
Platform Notice: Cloud Only - This article only applies to Atlassian apps 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
Before creating the flow
Create a Date Time Picker custom field named Approval Timestamp.
Associate the field with the relevant space.
Confirm that the workflow uses an Approval step.
Creating the automation flow
Go to the automation page by following one of the alternatives below:
Under the space: Space settings > Automation.
Global automation: Settings in the top-right > System > Global automation.
Select Create flow > Create from scratch.
Set up the automation flow with the trigger set to 'Approval completed'.
Use the Edit work item action within the automation to populate the "Approval Timestamp" field with the current date and time, using the smart value "{{now.jiraDateTime}}".
Test the automation: Create a new test ticket that follows the approval workflow > Complete the approval step > Confirm the Approval Timestamp field is populated with the approval date and time.
This solution applies only to new tickets; it does not retroactively apply to tickets approved in the past.
Was this helpful?