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

How to set table in Rich text HTML by Default Value

Hello,

EWM7.1 support table in Rich Text

would anyone can help or guide me how to set default table?

0 votes

Comments

When I make template, I need to pre create table in Rich Text by using Default Value,I write like <table> ....</table>,Its does not work, and just display the code, then I write like createElement("table")......., It does not work as well



One answer

Permanent link

Hi,
I run into the same requirements and was able to solve this as following:

First you need to create a default value provider with "Multi-Line HTML" as provider option (see picture).
Source: https://jazz.net/library/article/1003#def-values

You can just save anything as HTML for the moment, because its not possible to directly create a table in there.
After you saved this, you will see in the process configuration something like this:

<defaultValueProvider id="com.ibm.team.workitem.valueproviders.DEFAULT_VALUE_PROVIDER.xxxx" name="Your name of the provider" providerId="com.ibm.team.workitem.common.internal.attributeValueProviders.CustomDefaultHTMLProvider">
       <value content="Your text"/>
</defaultValueProvider>

Now you can change this content directly with encoded html.
E.G
&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Test&lt;/td&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

If you save that, it will create a table per default

Hope this helps Create default value provider

0 votes

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
× 12,134
× 11,088
× 6,176

Question asked: Mar 03 '25, 4:32 a.m.

Question was seen: 2,295 times

Last updated: Feb 16, 2:54 a.m.

Confirmation Cancel Confirm