Forums

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

how can i add multiple comments to an issue at once with Jira api?

itn.saurabh.chavhan November 14, 2019

i am getting issue details by making get request in the response  of that there is some comments like array of comment i wanted to add all those  comment to another issue at once like we do with component and label.

1 answer

0 votes
Nir Haimov
Community Champion
November 14, 2019

I don't think you can add all comments at once.

But you can run in a loop trough all comments and add then one after one

itn.saurabh.chavhan November 20, 2019

 I want to sync comments  as if somebody add a comment in issue then only that comment is need to add in synced issue..currently all the comments get added like issue A have 5 comment and issue B have 5 comment and if somebody add a comment in issue A then there 6 comment..now same 6th one is need to be add in the issue B ...i apply your logic of loop but what is happening now is all the 6comment of issue A is get added in issue B soo now there are total 11 comments...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events