Hi,
I'm creating an automation rule, where I need to access the approvers, like whenever someone add approvers, I will send a slack message.
But I'm not able to get the approvers email address or name.
I've tried these two
{{Approvers.displayName}}
{{issue.customfield_10003.displayName}
Hello @Mohammad Mohibbullah
Welcome to the Atlassian community.
Please show us the Automation Rule you have created, include the details of each step.
Is Approvers a single user selection field or multiple user selection field?
@Trudy Claspill Thank you for quick replay, Approvers is a single user selection field, created by Jira.
Here is the automation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my system the Approvers field created by Jira is a multiple user selection field.
Are you using this in a Service Management project with an Approval step added to the Workflow?
Also from the image it appears that you are working with a Team Managed project. Is that correct?
Because Approvers is a multiple selection field the {{approvers}} smart value is a list of users with 0..n users in the list.
If your process is to only ever have one user specified in the Approvers field then you could reference the first user listed with these smart values:
{{approvers.first.displayName}}
{{approvers.first.emailAddress}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It's a Team Managed Project, It's not any Approval step in the workflow just a extra field in the ticket.
I've tried these values, but i not getting any information.
{{approvers.first.displayName}}
{{approvers.first.emailAddress}}
Please note that these values are working perfectly
{{assignee.displayName}}
{{issue.url}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I apologize. The values should be
{{issue.approvers.first.displayName}}
{{issue.approvers.first.emailAddress}}
If it is still not working after making that change, Please provide a screen image of your updated rule and show the details of the step where you are trying to use the smart values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill , Thank you for your co-operation. Sadly I'm still not able to get the approvers information.
This is my rules
Please note, I'm able to get {{assignee. displayName}} easily.
Sorry for being late.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill I've able to make it work, I've removed the approver field and add again, now it's working as expected. Thank you.
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.