You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi! I am using Email notifications to remind customers about their pending approvals.
And I want to log users who will receive emails about pending approval.
There is "Pending approvers" value in the send email block. Maybe somebody knows how I can log for example emails or names of these users with 'Audit log".
Older post, but maybe this will help someone. One of our workflows has mutliple approvals configured and uses multiple "approvers" fields. I used Automation for Jira to build a simple rule which is triggered upon status change. The rule checks the Status field and sets a "Pending Approver" custom field (user picker) to the value of the approvers field associated with the current workflow approval. So "Pending Approver" always shows which approver(s) the issue is waiting on. I can display that value in dashboards, queues, etc.
I've been working with approvals quite a bit lately, so I have been having to explore the "Approvals" field quite a bit.
I had a similar use case where I needed to add whoever actioned an approval to the "request participants" field.
That said, the smart value you're looking for is something like this;
Where "customfield_10205" is the custom field ID of your instance's "Approvals" field.
Note: the ".first" section of that smart value, is only needed if your issue has more than one status where approval is required, or if the issue is reset in some way to have the approvals re-done.
I'm afraid that you won't be able to get the exact list of pending approvers out, however you might be able to log out the Approvers field and then that will hopefully include the state so that you can see which approvers are in pending.
@SimmoI don't need to log all approvers. I want to log only those who will receive a notification (pending approvers). In my workflow, all approvals need that ticket passed to work in progress status. So if there is only one approval but needs 2 approvals, the ticket will stay in waiting for approval.
I'm afraid that the logic that we use in the Email action, "Pending approvers", isn't available as a smart value.
The closest you can get is to log out all the approvers and look at their status.