How to serialize the programmatically comment insertion?
We have a Plain Java Client to programmatically add comments to existing work-items.
The snippet of code we use is:
When two (or more) processes try to add a new comment to the same work-item at the same time, only the last comment will be included.
How can we serialize the comment insertion? Why using a working copy is not enough?
Thanks in advance.
Cheers.
|
One answer
We have tried to add the condition:
while (workingCopy.isDirty());
before add a new comment, but obviosly it is not enough...
|
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.