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

Error while saving workitem with Rich text content in description via java script

We have a java script automation that creates a child work item of the parent work item. When the parent description has a rich text content and try to copy to the child wi, we are facing the following error on save of 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Ā  java script api callĀ  service provided by RTC(which is almost similar to the call made by the web). Below is the snippet :

this.createWorkItem = function (workItemCopy, completeWorkItemSummary, owner, dueDate, category, target, spawnWorkItemType,description) {
var projectAreaHandle = workItemCopy.getProjectArea();
var newWorkItem = Api.WorkItems.createWorkItemByAreaHandleAndTypeId(projectAreaHandle, spawnWorkItemType, completeWorkItemSummary);



if (owner != null) {
newWorkItem.setOwner(owner);
}

if (dueDate != null) {
newWorkItem.setDueDate(dueDate);
}

if (category != null) {
newWorkItem.setCategory(category);
}

if (target != null) {
newWorkItem.setTarget(target);
}
newWorkItem.setDescription(description);

return Api.WorkItems.commitWorkItem(newWorkItem);
};

0 votes


Be the first one to answer this question!

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

Question asked: Oct 22 '20, 8:26 a.m.

Question was seen: 723 times

Last updated: Oct 22 '20, 8:26 a.m.

Confirmation Cancel Confirm