Adding a mention in comment using JIRA automation

Ayoosh Gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2025

Hi

I've been trying to mention the "Approver" in the comment using JIRA automation but I always get "@unknown". Been using the correct syntax using the account ID and have doube checked the execution rules and the access for my ID and the JIRA automation user but still fails. Any tips? Has anyone got it working for them?

3 answers

0 votes
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 3, 2025

Hi @Ayoosh Gupta 

Welcome to community :) 

Please chcek if your use case is similar to this :https://confluence.atlassian.com/jirakb/jira-service-management-cloud-use-automation-rule-to-notify-pending-approvers-1443041080.html#

Thank You,

prachi

0 votes
Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2025

The format for @mention to work is

[~accountid:{{issue.assignee.accountId}}] or replace the bold values with your fields.

However, as Rebekka rightly mentioned, sharing what you have put in place so far and the audit logs will help in analyzing the problem

0 votes
Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 3, 2025

Hi @Ayoosh Gupta and welcome to the Community,

could you provide screenshots of the rule (actions) that you got so far? That always helps with analyzing where it goes wrong.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2025

Hi @Ayoosh Gupta -- Welcome to the Atlassian Community!

Adding to the suggestions from @Rebekka Heilmann _viadee_ ...

 

The Approvers field is a list of values, and so a rule would need to iterate over the values to add each one using the mention syntax.  For example:

{{#issue.approvers}}[~accountid:{{accountId}}]{{^last}}, {{/}}{{/}}

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events