Error while creating workitems with Rich text via a widget
Hello all,
We have a widget that creates a copy of selected work items. After we switched on the Rich Text Feature, we are facing the following error for the work items having Rich Text description,
Could not save work item : CRRTC0300E: The work item with the ID <id> cannot be saved because this client version cannot modify extended rich text content in the attributes '[Description]'. To modify an attribute that contains extended rich text use the web client.
Is it so that the Rich Text cannot be added or modified by any client except via the Web browser itself?
We are here using AJAX to call the REST service provided by RTC(which is almost similar to the call made by the web). Below is the snippet :
$.ajax({ method : 'POST',
url : 'https://localhost:9443/ccm/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/workItem2',
headers : {
'Accept' : 'text/json',
'Content-Type' : 'application/x-www-form-urlencoded; charset=utf-8'
}
data : this.bodyData, // The bodydata contains the headers like additional save parameters eg. - com.ibm.team.workitem.common.internal.updateExtendedRichText
paId : this.paId,
newWiId : this.newWiId,
success : function(data) {
// Publish the result.
},
error : function() {
// Error Handling
}
});
I will be glad to receive some insights here.
Thanks
Accepted answer
The additional save parameter - com.ibm.team.workitem.common.internal.updateExtendedRichText2 must be used (instead of com.ibm.team.workitem.common.internal.updateExtendedRichText). The number 2 at the end is important.
Thanks to Ralph Schoon and his team for the solution.