I'm creating an automation email to show the status of all the approvals.
I'm able to get the displayName and approverDecision, but completedDate does not return a value.
Here is what I am using:
Also, I'm not really sure why this is working :)
We have a custom field flor the approvers, but this (below) doesn't return any value
{{issue.customfield_15606.approvers.get(0).approver.get(0).displayName}} -
Any help would be appreciated,
Thank you
Hello @Rita K Landis
Without seeing the fields within this customfield, it is hard to suggest. I am assuming your reponse is like here.
Please try to log below values and let us know if any of them give you the data:
{{customfield_15606.completedDate}}
{{customfield_15606.completedDate.jira}}
{{#if(equals(customfield_15606.finalDecision,"approved"))}}{{completedDate}}{{/}}
{{#if(equals(customfield_15606.finalDecision,"approved"))}}{{completedDate.jira}}{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalyan,
Thank you for your response. None of the suggestions provided any data. I entered the URL and
customfield_15606":null
was returned
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Rita K Landis
Sorry about that. I thought customfield_15606 was for Approvals. Maybe try for Approvals field in above response instead? Just curious.
BTW, Can you tell what is the trigger for your automation rule?
If your trigger is Approval Completed, then you can use {{approval.completedDate}} along with other smart values for approver and decision as listed here.
If you trigger is something else, I have read that you dont have access to the completed date. You will need to either -
htpps://youdomain.net/rest/servicedeskapi/request/{issueIdOrKey}/approval
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help, Kalyan.
I'm running the automation manually, so that seems to be the issue with not getting the date back.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.