Get Approvers Date time of approved by using Approval

Kaviraj November 17, 2019

Hi All,

In Approvers (Custom field - User picker) has 3 user needs to give approve.

As we know that, Jira displaying approved/ Declined Status, but i need date & time of approved.

Steps i followed below: 

 

Add Approval 01.PNG

Add Approval - Configure.PNG

Add Approval 02.PNG

How can i achieve the Date & Time of Approved.

 

Appreciate your help.

2 answers

0 votes
Leif Van Art February 7, 2023

The answer to display the approver, their decision, and the date/time is a combination of this:

https://confluence.atlassian.com/jirakb/how-to-display-the-approvals-status-with-the-approvers-information-using-automation-1095245487.html

{{#issue.Approvals}}
      {{#approvers}}
                Name: {{approver.displayName}} 
                Action: {{approverDecision}} \\
        {{/}}
{{/}}

Additionally, to get the date/time you can use the {{now}} smart value and either store it in a field or add it to a comment. 

0 votes
C_ Derek Fields
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2019

You can use post-function on the transition to capture the current date/time stamp to a custom field.  There a lot of add-ons available that will let you do that. If you need to capture the date/time of multiple approvers, you may need multiple custom fields or you could capture the date/time as a comma-separated list in a single text field.

Kaviraj November 18, 2019

Hi @C_ Derek Fields  Thanks for your response,

Post-function on transition - Approvers are not actually changing the status when they're giving approve but clicking Approve/Decline provided by Approval (Refer pic 1 Add Approval). After all approvers are done with the response then status will move from "Awaiting for approval" to "Approve/Decline". So, we cant capture the each approvers date time.

Multiple Custom fields - Approvers are not fixed, they might be more approvers based on document.

Comma-Separated list - Since we're not getting the action of each approvers then how can we capture all timestamp. Even, This will end-up being chaos with timestamp of whom.

Petr A October 20, 2020

@Kaviraj Hi mate! Did you solve this problem?

Claudio Casiello November 19, 2020

Hi Anyone knows?

Suggest an answer

Log in or Sign up to answer