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

This widget could not be displayed.
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/
This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

105 views 1 2
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