Extended Rich Text through Server API
I'm trying to set the description of newly created work items through the server API. The description should contain rich text, such as bold text.
IWorkItem wi = ... ;
String description = .... ;
wi.setDescription(XMLString.createFromXMLText(description));
Accepted answer
I've changed the markup to use bold text (b HTML tag) instead of underline (u HTML tag), and it worked.
Comments
The Web UI uses REST interfaces to communicate with the server. This is not necessarily the same API. The fact that the operation participant is executed regardless if this is from the Web UI or not, does not really matter. It is the same API as a follow up action, but the API used to change values might not be the same API. My 2 cents.
BTW, thanks for sharing. It is appreciated if you answer your own questions, if you find a solution.
One other answer
I think, I have not played with that using the API, this is related to the new rich text content that can be enabled for RTC. It appears that the client API can not set this information. You will have to look how the Web UI does this. An alternative could be to use a normal text attribute for the automation and let the description to be used by users in the Web UI.