Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[closed] How to set value of a work item attrobute of type 'Large HTML' using RTC API?

Hi,

I need to set value to an attribute "Acceptance Criteria" which is of type "Large HTML". I have written below snippet:


IWorkItemCommon workItemCommon = getService(IWorkItemCommon.class);
IAttribute accCriteria= workItemCommon.findAttribute(projectArea,"acceptance.criteria.final", null); 
XMLString newChildAccCriteria = XMLString.createFromXMLText(wiConfig.accCriteria);
newChildWI.setValue(accCriteria,newChildAccCriteria);


but I am getting error while setting the value (at setValue)

Error:

org.eclipse.core.runtime.AssertionFailedException: assertion failed: 
 
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)

at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)

at com.ibm.team.workitem.common.internal.model.impl.WorkItemImpl.setValue(WorkItemImpl.java:2909)

Please let me know how to set value for Large HTML type using RTC API.

Thank you

0 votes


The question has been closed for the following reason: "Duplicate Question" by rschoon Apr 05 '18, 4:35 a.m.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Apr 05 '18, 3:31 a.m.

Question was seen: 1,364 times

Last updated: Apr 05 '18, 4:35 a.m.

Confirmation Cancel Confirm