Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In JIRA is there a way to create a nested table?

Tags:

jira

The JIRA documentation does not mention a way to create a nested table something like

|outer-col1|outer-col2|
|col1 val1||inner-col1|inner-col2|
           |icol1 val1|icol2 val1|
           |icol1 val2|icol2 val2| 
|col1 val2||col2 val2|

(or) atleast something where I can span a multiple rows for a column value

i.e.

|outer-col1|outer-col2|outer-col-3
|col1 val1 |col2 val1a|col3 val1a|
           |col2 val1b|col3 val1b|
|col1 val2||col2 val2 |col3 val2 |

The only way I can span now is to have empty values in the column and have the reader assume that it represents the previous rows value for that column.

like image 813
Jay Avatar asked Jan 17 '17 20:01

Jay


People also ask

How do you make a nested table?

Click inside any cell in the larger table. Once again, use the “Insert” tab to create a table. For example, click on cell 1, go to “Insert,” “Table” and then create a 2-by-2 table. This 2-by-2 is now nested inside of the 3-by-3.

How do I nest a table within a table?

To create a nested table, we need to create a table using the <table> tag. This table is known as the outer table. The second table that will be nested table is called the inner table. This table is also created using the <table> tag but there is a special thing that must be kept in mind.

Can we create table within another table?

A table can be created within another table by simply using the table tags like <table>, <tr>, <td>, etc., to create our nested table. Since nesting tables can lead to higher complexity levels, remember to begin and end the nesting tables within the same cell.

What is a nested table?

Nested tables are single-dimensional, unbounded collections of homogeneous elements. First, a nested table is single-dimensional, meaning that each row has a single column of data like a one-dimension array. Second, a nested table is unbounded. It means that the number of elements of a nested table is predetermined.


1 Answers

Found a way around to make nested tables at below linked page https://community.atlassian.com/t5/Confluence-questions/Nested-table-in-wiki-markup-Confluence-4/qaq-p/18355

The solutions suggest many tags that can be used to achieve this. A simple one is {panel} tag. Just wrap the Inner table inside two {panel} tags. Below is a sample and its result

Sample
||Tabe1Column1||Table1Column2||
|item1.1|item1.2|
|item2.1|Sub table {panel}
||Table2Coumn1||Table2Column2||
|sub item1.1|sub item 1.2|
|sub item 2.1|sub item 2.2|{panel}|

enter image description here

like image 151
isuru chathuranga Avatar answered Oct 21 '22 01:10

isuru chathuranga