error when creating work item with too long description
Hi,
I'm trying to create a work item with a long description, using IWorkItemHandle handle = service.getWorkItemWorkingCopyManager().connectNew(workItemType, monitor); where message can be really long, so I got this exception: com.ibm.team.repository.common.validation.PropertyConstraintException: Validation errors for item: type = WorkItem, itemId = [UUID _cSjhYKubEeCEcsklv5qnDA] My questions:
2. How can I calculate this encoded length? In this case message.length() is 27635, and XMLString.createFromPlainText(message).getXMLText().length is 32704. Obviously I'd like to dynamically truncate 'message' to fit into work item's description attribute, so if there's any easier way to do this, that would also be appreciated. Thanks, Attila |
One answer
Anyone any idea?
Thanks, Attila Comments
khayati ohri
commented Jun 11 '12, 4:10 a.m.
Any one having any idea of the above issues.I am too facing the similar issue.Any ideas/updates will be quite helpful |
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.