How I add new comment for WorkItem using Server Side Plugin
Hi all,
I need a some help. I have an advisor plugin in RTC. I want to add new comment my source workitem. My code: IComments comments = sourceworkItem.getComments();But i get this error:
Error running operation 'Saving Work Item'
Validation errors for item: type = WorkItem, itemId = [UUID _L2jbAIaJEeSkQJKbbjlvNg]Why this happen? How i can set creationDate? |
Accepted answer
Hi all,
Ralph Schoon selected this answer as the correct answer
|
2 other answers
Hello Hakki.
Are you creating a workitem that same advisor? The workitem must have a "creation date". Try:
PS: Insert the code above before the comment creation. Comments
Hakki Bozkurt
commented Nov 25 '15, 1:48 p.m.
Hello Pietro,
|
Hi all,
((Comment)comment).setCreationDate(now);
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.