Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set comment Author using Atlassian SDK

Paresh Nawale February 16, 2018

Is it possible to set author of a new comment using Atlassian SDK? I tried following but didn't work

 

JiraInstance = Jira.CreateRestClient("<url>", "<user>", "<password>");

Atlassian.Jira.Comment c = new Atlassian.Jira.Comment();

c.Body = "my comment from code";

c.Author = "<user name>";

JiraInstance.Issues.AddCommentAsync(Key, c)

 

1 answer

1 accepted

0 votes
Answer accepted
Timothy
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.
February 17, 2018

You cannot set the comment of the author using the REST Api.

Damian Boni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2018
Like # people like this
Daniyal Anwar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 17, 2021

Can we Just add name somewhere in the body of the comment? so it at least shows info about the comment author!! rather than just admin user?

using REST API 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events