Now that approvals are available in any Jira project, how can you show, using Automation in Jira, a comment the list of approvers and the status for each?
I tried different approaches that I could find in documentation, like these below, without luck:
Current approval state for each approver is:
{{#issue.customfield_nnnnn.last.approvers}}
- {{approver.displayName}} is {{approverDecision}} {{/}}
or
<ul> {{#issue.customfield_10003}} {{#approvers}} <li> {{approver.displayName}} - {{approverDecision}} </li> {{/}} {{/}} </ul>
I would like to show a list of approvers, in my case are approver groups in a multi-group picker, where I require at least one of each to approve.
I want to show this message when it transitions to approval and also, after each approval is registered so users know what is pending.
I know this information shows at the top-right side of the work item, but wanted to check if was possible to show this as a message or even as a slack.
Try the below:
How to Show Approver List and Status via Automation
You can use Jira Automation smart values to print the current approval status in a comment or Slack message. Here’s a snippet that works for company-managed projects:
*Approvers & decisions* {{#issue.Approvals}} *Step:* {{name}} — *Status:* {{status}} {{#approvers}}
{{/}} {{/}} |
If You Use Approver Groups
Group approvals are supported when the workflow uses a Group Picker (multiple groups) field. For mentioning pending approvers per group, see Atlassian’s “Notify pending approvers” recipe, it uses indexed smart values like .approvers.get(0) and accountId mentions.
Optional to Keep a Permanent Approval Log
If you want to retain decisions even when Jira resets the built-in Approvals field:
{{approval.approvers.displayName}} — {{approval.decision}} on {{now}}
This gives you a running history for reporting or conditional logic.
Also check, they might not fit your use case but have valuable info:
Page Approvals - Let's Make It Complicated (Part 1... - Atlassian Community
Page Approvals - Let's Make It Complicated (Part 2... - Atlassian Community
Solved: Filtering Approvers who approved with smart values
Try it and let me know if it worked!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.