Hi,
I've been struggling for hours and hours, but can't find a way to get the names of approvers who approved an issue.
So we have a group of 10 users who are able to approve a certain issue. Only two approvals are required. When the issue is approved I want to make a comment in a linked issue stating that Person1 and Person2 have approved the linked issue.
So I've tried several ways of filtering the approvers, but none of them work. Note: customfield_10045 is the Approvals field. I would have thought that this should work:
{{#issue.fields.customfield_10045.approvers}}
{{#if(equals(approverDecision,"approved"))}}
{{approver.displayName}}
{{/}}
{{/}}
But it does not give any output.
When I try this:
{{#issue.fields.customfield_10045.approvers}}{{approverDecision}}{{/}}
The output is:
pending, pending, pending, pending, pending, approved, pending, pending, approved, pending, pending
Replacing {{approver.displayName}} with a string, does not output the string two times.
Hopefully somebody can tackle this.
Rudy
Thanks @John Funk , though it is not the solution, the comments in the other posted got me on the right track. For future reference this is the solution:
{{#issue.fields.Approvals.approvers.get(0)}}
{{#if(equals(approverDecision,"approved"))}}
{{approver.displayName}}
{{/}}
{{/}}
Gracias por la aportación
Si funciona.
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.
Hello!
No way to have Smart values regarding approval work!
I tried:
It does not work.
Any idea?
Thanks,
Best
Valerie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rudy,
Take a look at this previous post to see if it can help you. And maybe try {{issue.Approvers.displayName}}
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.