Using WikiMarkUp to create tables with merged column headers

Hi,

When I create a table using Confluence I can merge the cells of the top row, and then have split cells beneath for individual column headers.

The Confluence xml source code views as below:

<table>
<tbody>
<tr>
<th> </th>
<th colspan="6" style="text-align: center;">Fruit</th></tr>
<tr>
<td class="highlight" colspan="1"><span>Quantity</span></td>
<td class="highlight" colspan="1">Apples</td>
<td class="highlight" colspan="1">Pears</td>
<td class="highlight" colspan="1">Bananas</td></tr>
<tr>
<td class="highlight">1</td>
<td>Yes</td>
<td><span>Yes</span></td>
<td colspan="1"><span>NO</span></td></tr>
<tr>
<td class="highlight">2</td>
<td><span>Yes</span></td>
<td><span>NO</span></td>
<td colspan="1"><span>NO</span></td></tr>
<tr>
<td class="highlight">4</td>
<td><span>NO</span></td>
<td><span>NO</span></td>
<td colspan="1"><span>Yes</span></td></tr></tbody></table>
<p> </p>
<p> </p>
<p> </p>

When using WikiMarkUp in JIRA to create the same table it should be as simple as the below:

|| ||Fruit||
|Quantity|Apples|Pears|Bananas|
|1|Yes|Yes|NO|
|2|Yes|NO|NO|
|4|NO|NO|Yes|

However where 'Fruit' would sit across Apples,Pears & Bananas in Confluence, in JIRA this results in 'Fruit' being a column header to the second column only (Apples).

Does anyone know how to make WikiMarkUp in JIRA replicate the xml code used in Confluence to merge cells??

Many Thanks

2 answers

As per my knowledge you can't do this directly using wiki markup. You can use third partly plugins like http://www.adaptavist.com/w/Plugins/free/content-formatting/

follow this simple tutorial covering all about html table ...

http://www.corelangs.com/html/tables/default.html

Nick

How did this get two upvotes? It's about HTML tables, not wiki markup that will be converted to the appropriate HTML tables...The question is about wiki markup.

@Carl Gieringer exactly...people are asking for Markup solutions because markup allows easy insertion of other macros into the table....at least, that is why I am after a Markup solution to this problem

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

280 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you