Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining @username(mentioning). Here user is the one who initiates the automation or triggers it.

MahanthPrudhvi
Contributor
August 4, 2023

Hi, I have created an automation where a comment will be added mentioning @initiator but when I use {{initiator.accountId}}, it's not mentioning the initiated user but it is giving user ID something like this " @62fb76b9e2b1b5ae159a8ba8. So how can I get user name?

 

Thanks.

2 answers

1 accepted

3 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2023

Hi @MahanthPrudhvi ,

based on the following article https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/ you could use {{initiator.displayName}}.

To mention someone you should use [~accountId:{{initiator.accountId}}]

Fabio

MahanthPrudhvi
Contributor
August 7, 2023

Hi @Fabio Racobaldo _Herzum_ 

 

Sorry for my late response. I have tried your suggestion and working amazing.

Thanks for your quick response and suggestion.

 

Regards,

Mahanth.

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 7, 2023

you're welcome @MahanthPrudhvi 

0 votes
Mathieu Truchot
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.
August 4, 2023

hi,

you can try {{initiator.displayName}} as mentionned here : https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/

Best regards,

Mathieu

MahanthPrudhvi
Contributor
August 7, 2023

Hi @Mathieu Truchot 

 

I am using [~accountId:{{initiator.accountId}}] because it has to trigger a  mail as well.

Thanks for your suggestion.

Regards,

Mahanth.

Suggest an answer

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

Atlassian Community Events