Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use @mentions in comments left by Jira Automation?

Just as the above says... I have an automation that leaves a comment on a task when the status is transitioned. 

 

I can type out in the body of the comment  '"@user" but unfortunately the comment left by the automation does not convert this to a mention.

 

If it matters, I'm using the wiki markup to pull the name of the user.

 

2 answers

1 accepted

1 vote
Answer accepted

Hello Erin,

You are right, @User isn't working, try this instead [~user] 

Comment_on_issue.png

Hey, thanks for the response!

 

I gave it a try, and no matter what I have in the square brackets, it disregards it and @mentions "user", like so.

image.png

I've tried everything I can think of, from [~{{assignee.displayName}}]  to simply typing out the user's name and everything in between, but the result is always as shown above.

 

Any suggestions?

Like maricris_macha likes this

I just tested it out and it worked for me,  try to mention a different user and see if it works, if not give this post a read and check if it helps!

This might also help you troubleshoot your issue - Mentions and Autocomplete are not working in JIRA Cloud

I had to go off the comments on your second link - it worked to call the account id after the ~, then pull the account ID from the person I'm trying to mention.  For example:

[~accountid:{{assignee.accountId}}]

Seems a bit unnecessary, but it worked.

Thanks!

Like # people like this

Hello, I tried this and it seems to work great for me. [{{ currentUser | userInfo("displayName") }}|~accountid:{{ currentUser._accountId }}] 

I used this in a post function to notify the current user of an automatic change in the issue.

This worked for me, but the other methods above did not. Thank you! Here's my example for others interested. I was just doing a simple automated comment that would notify the issue reporter. Hopefully this is helpful.

[~accountid:{{issue.reporter}}]

This issue has entered the "Awaiting Customer Feedback" status and needs your assistance. Please work with {{issue.assignee.displayName}} to help move the case forward.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you