Forums

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

How to tag an user in an automated rule

Ana BD March 27, 2023

Hello, I have an automated rule that posts a text to a MS Teams channel we have in the team for jira notifications.

In this text I want to tag the user that triggered the rule. For this I'm using the following text in the custom data area of the 'Send web request':

 

{"text": "The issue has been marked as Done but the fix version is empty. Please [~accountId:{{initiator.accountId}}] review it. Thanks!"}

 

But for some reason that doesn't come as expected and I get this posted into the MS Teams channel:

 

The issue has been marked as Done but the fix version is empty. Please [~accountId:JIRAUSER44655] review it. Thanks!
Can someone please let me know what I'm doing wrong? Thanks!

1 answer

0 votes
Morgan DUBUISSON
Contributor
March 27, 2023

Hi, 

Maybe not [~accountId:JIRAUSER44655] but : @{{initiator.displayName}}

Best Regards

Ana BD March 28, 2023

Hello @Morgan DUBUISSON,

 

Thanks for your response. I also tried that and it doesn't tag the user either, instead I get this:

 

@<user_name>
Which is not tagging the user.
Kind regards
Morgan DUBUISSON
Contributor
March 28, 2023

Hi, 

So @{{initiator.emailAddress}}

Best Regards

Ana BD March 28, 2023

Hi again,

 

I'm afraid that doesn't work either:

user tagging in Jira automated rule.PNG

As you can see above the @<email_address> doesn't get turned into a user tag.

 

Kind regards,

Ana

Morgan DUBUISSON
Contributor
March 28, 2023

I will do some tests on my side

Like Ana BD likes this
Ana BD March 28, 2023

Many thanks for your help, @Morgan DUBUISSON

It's really appreciated.

Morgan DUBUISSON
Contributor
March 28, 2023

I just looked,

I couldn't find any information to do it natively.


I see if it is not possible to do it by another way

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events