The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'm working on an Automation rule that will send an email to the approvers when the ticket approval process has been completed. All smart values are properly calculated, except for {{approval.approver.displayName}} which should give me the display name of the person who approved the change.
Based on the documentation, {{approval.approver}} should give you the user id of the person who approved the change and it is mentioned that user smart values can be combined with this so I assumed that adding ".displayName" would do the trick but when the email is sent that value shows empty.
Here is the structure of the email I'm sending:
{{approval.approver.displayName}} has completed the approval on {{approval.completedDate}} with {{approval.decision}} decision for {{issue.key}}.
*** Approvals status: ***
{{#issue.Approvals}}
{{#approvers}}
Name: {{approver.displayName}} - Action: {{approverDecision}}
{{/}}
{{/}}
Any thoughts?
Hi @Rodolfo Romero ,
Thanks for raising this issue. It looks like you've stumbled across a bug. The `{{approval.approver}}` is actually currently being rendered as a plain `String`, rather than as a `User` object and hence won't work for your use case.
I have raised https://codebarrel.atlassian.net/browse/AUT-2414 to address the problem. Will hopefully be able to fix it soon.
Cheers,
James
Hi James,
I can confirm that this has been fixed and deployed to Cloud.
Thanks!
Rodolfo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what if you test w/o DisplayName then check if it is giving the correct accountID? Just trying to dissect the problem to find the broken bit. You might use the log action to record {{approval.approver.displayName}} as well.
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.
ok that is good to know. if you use log action with
{{approval.approver.displayName}}
what is logged?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the exact same problem, I'm trying to use Automation to work out who is the approver in a request with multiple approvers, then send an email which includes the name of the person who approved the request.
The following shows all possible approvers which is what I do not require.
{{issue.Approvers.displayName}}
The following is blank, logging it only returns 'Log'
{{approval.approver.displayName}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.