Assigning primaryText attribute with RTF text
![]() Hi,
Is there any way to "recycle" formatted text (RTF) into the attribute "primaryText" of a Doors NG artifact by OSLC REST API ?
Regards Magnus
|
Accepted answer
![]() I'm not quite sure what you are asking, but let me take a guess (I'm assuming you know OSLC). The primary text in DNG is stored as HTML. So you would convert the RTF text to HTML before inserting it into the primary text. You can use something like the RESTClient plugin in Firefox to test things out first. I would recommend creating an artifact with empty primary text first so that you can see what it looks like (starts and ends with <div></div>) and then insert your HTML text in between the start and end markups. You may have to modify the RTF to HTML conversion text based on what is produced by the conversion tool and what is allowed in DNG.
magnus Elfving selected this answer as the correct answer
Comments
There is always something wrong if a question has only one line of text. I would advise reading: https://jazz.net/forum/questions/203755/how-should-i-ask-a-question-in-the-forum-if-i-want-to-receive-useful-answers
|
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.