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

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 

0 votes


Accepted answer

Permanent link
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.
Ralph Schoon selected this answer as the correct answer

0 votes

Comments

It is possible to pass additional save parameters in the request body.


Pass 

additionalSaveParameters: com.ibm.team.workitem.common.internal.updateExtendedRichText2

To update extended rich text. (the 2 most likely is the result of a first test in CLM 4.0.3)

When creating links, pass

additionalSaveParameters: com.ibm.team.workitem.common.internal.updateBacklinks 

to get the back links created. 

When Enable extended rich text presentation is enabled, it is possible to use more Rich Text capabilities such as colors and horizontal lines. 
This is only available in the Web Client. If an attribute has Rich text annotations by default it is prevented from being saved by the RTC Eclipse client. 

When trying to save a modified attribute with rich text content the error above happens. This is also true when using the RTC SDK or Java API. 

Using the additional save parameter allows to successfully change changed rich text. This is important for automation that is supposed to copy rich text data between work items.

Note, that it is also possible to mess up rich text attributes doing this.

Your answer

Register or log in to post 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.

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
× 10,954
× 84

Question asked: Jul 10 '19, 7:33 a.m.

Question was seen: 1,946 times

Last updated: Oct 27 '21, 9:51 a.m.

Confirmation Cancel Confirm