I am trying to update an asset "table" with the person that approved a request. The attribute in the Assets table is a User type field. I'm trying to get the user id of the approver and update that table. So far, it's been a bit maddening... I am able to get the Display name, but have not found anywhere (including the non-working Atlassian documentation) that explains how to get the user id and update the Asset record. I'm using this to get the Display Name, but not sure how to tweak it to return the User Id:
{{#issue.fields.Approvals.approvers.get(0)}}
{{#if(equals(approverDecision,"approved"))}}
{{approver.displayName}}
{{/}}
{{/}}
I've scoured this site, and found a question that was flagged as answered without a working answer.
Any help would be appreciated.
Hi @Edward Moxley ~ maybe try this? {{approver.accountId}}
Adding to Laurie's answer, here are the supported attributes for the user smart values:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Laurie's answer was spot on. Now I need to get the date that the approval was provided. I tried {{approval.completedDate}} and it comes back as null.
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the trigger for your rule? That smart value appears to only be available with the Approval Completed trigger.
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--approval--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.