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.
Community moderators have prevented the ability to post new answers.
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
One of my colleagues Used this. U may try and see if it works for you:
ComponentAccessor.getJiraAuthenticationContext().setLoggedInUser(updatedBy);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.