addComment not working as per the documentation

Originally asked by Sujan Karanjeet on 10 May 2023 (original question)


I tried to add a comment using addComment: https://docs.exalate.com/docs/addcomment-6226057

But this does not seem to work.

issue.comments = commentHelper.addComment("Resolution changed to done", issue.comments)  
--> This comments the issue but it's showing the same comment twice.  
  

issue.comments = commentHelper.addComment("Custom made comment", false, issue.comments)  
--> This does not work.  
  
Please let me know if someone has tried this and if it works.  
  
Cheers,  
Sujan
  

  


Answer by Test user on 22 May 2023

sdf


Answer by Syed Majid Hassan on 20 May 2023

Hi Sujan Karanjeet,

May I ask which platform you are trying this on? Also, if the first one works for you, then I believe the duplication might be a result of the script having another line regarding comments after the one you have added here. Can you please carefully check that too?

Thanks

Majid