How to check if the saving of updated WI is successful?
I created a little java application using JazzPlainJava API to add comments to existing work item.
It works well when the updated WI is saved successfully. But if for some reason the work item doesn't get saved, I have trouble with my logic to check if the new added comment is the same as the string I want to add. As it seems it doesn't matter if the save is good or not, the check will always be true due to the fact I am still in the same workingcopy of the WI I am handling. So I guess this forces me to check the return of the WI's save operation through WorkItemWorkingCopy workingCopy.save(null)? How do I do that? It seems the commen.append is fine, so I can check much on that. Is there other ways to check and get the new saved comment back? Here are the related code pieces. Any help is appreciated.
|
One answer
Never mind.
I guess I should have checked if the workingcopy.save is successful or not instead of comparing the new added comment. |
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.