Missed Team ’24? Catch up on announcements here.

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

JIRA REST API add comment

Nad Af January 10, 2013

I would like to impersonate an account when adding a comment. For example, if user A is adding the comment, I want the author/poster of that comment to be person B provided that user A is admin. Is that possible ? how?

NOTE: Setting the author field while posting the comment has no effect.

Thanks.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
LucasA
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.
January 11, 2013

Hi,

This is not possible. You will need to specify an username when triggering the REST call, and all the actions he perform (add comments, create issues, etc) will inherit his ownership.

Best regards,
Lucas Timm

0 votes
SomnathK September 5, 2013

One of my colleagues Used this. U may try and see if it works for you:

ComponentAccessor.getJiraAuthenticationContext().setLoggedInUser(updatedBy);

TAGS
AUG Leaders

Atlassian Community Events