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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,965 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot