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

Possible to set comment author through REST API?

I'm writing a script to migrate tickets into JIRA from another platform. I'm trying to keep as much information as possible and that includes who wrote each comment on an issue.

I've tried specifying the author information when I create the issue but it seems to be silently ignored.

Is there a way to set the author?


2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

I'm guessing your using POST /rest/api/2/issue/{issueIdOrKey}/comment?expand to add the comments. And indead, with this REST resource it's not possible to set the author. It will always be the logged-in user. Which makes sense, because any user can use JIRA's REST API and it therefore would be a bad idea to allow setting the comment author.

You might have more luck with other importing methods.

Although I suppose the API could do some permissions check and allow an Administrator or Systems Administrator account to set these values. I'm therefore assuming/guessing that the import tools bypass the API and perform some direct DB changes. Which is a shame because I need a Zendesk import tool now (well, within the next few weeks) and the likelihood of Atlassian producing that based on the low number of votes for one ... yeah, 'nuff said. Oh well, I'll just have to embed the commenter's name at the start of the comment. Ugly but at least it retains the history.

Like Deleted user likes this

Glad to have been of help. Please consider accepting my answer by checking the tick mark.

is there been any updates on this topic on latest jira version (after 2016) to change the author name from authenticated account? 

Like # people like this

When trying to integrate different tools, as happens on TestLink ( to allow users to create issues on JIRA when doing test case execution, people always want to have item created on JIRA with right author, in this situation user that is executing the test case.

Current TestLink implementation uses (and this may be can be/ has to be changed?) a single service user defined on JIRA with appropriate rights to do operation via API. (user & password is saved on testlink configuration for specific JIRA instance/project)

Giving appropriate rights to this service user, allowed me, to be able to set issue reporter when creating it.

IMHO it would be great if same principle (as was explained by Phillip Colmer) where available also when adding a comment.

best regards


Francisco Mancardi

TestLink Team Leader

Community showcase
Posted in Industry Groups

How has COVID-19 impacted your job?

Hello, members of the Non-Profit Group! I hope you are all happy, healthy, and safe. I'm hoping you will share a bit with the group about how COVID-19 has changed your day-to-day job. In particular...

16 views 0 0
View post

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