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

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

Jira API to tag user in Comment

I am able to add comment to issue in Jira through API  but i am struggling to mention/tag user in that comment i am using below API 

curl -D- -u admin:adminxyz-X POST --data '{"body": {"type": "mention","attrs": { "id": "xyz","text": "hi @XYZ "}}}' -H "Content-type: application/json"


{"errorMessages":["Can not deserialize instance of java.lang.String out of START_OBJECT token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@6851c17a; line: 1, column: 2] (through reference chain:[\"body\"])"]}+  


1 comment

Hi @Pravin 

I think you're using the API v3 version of mentioning users while calling the v2 endpoint!

Like Pravin likes this

Hi @Prince Nyeche ,

Thanks for your response 

Is there any API in V2 to mention user in comment ?

Hi @Pravin 

I believe in v2 for servers you can use this format

curl -D- -u admin:adminxyz -X POST 
--data '{"body": "Hi [~XYZ]"}'
-H "Content-type: application/json"
Like Pravin likes this

Hi @Prince Nyeche ,


Thank you it is working now !


Log in or Sign up to comment
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

155 views 1 7
Read article

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