Hello all,
I’ve some problems retrieving the HTML from wiki fields with tables.
We can retrieve the HTML from a jira field using the expand parameter renderedFields, however, when the field has a table, we don’t have any info about the columns width.
Example:
HTML that Jira Rest API provides:
<div class='table-wrap'>\n<table class='confluenceTable'><tbody>\n<tr>\n<th class='confluenceTh'><b>1</b></th>\n<th class='confluenceTh'><b>2</b></th>\n<th class='confluenceTh'><b>3</b></th>\n</tr>\n<tr>\n<td class='confluenceTd'> </td>\n<td class='confluenceTd'> </td>\n<td class='confluenceTd'> </td>\n</tr>\n<tr>\n<td class='confluenceTd'> </td>\n<td class='confluenceTd'> </td>\n<td class='confluenceTd'> </td>\n</tr>\n</tbody></table>\n</div>\n\n\n<div class='table-wrap'>\n<table class='confluenceTable'><tbody>\n<tr>\n<th class='confluenceTh'><b>3</b></th>\n<th class='confluenceTh'><b>4</b></th>\n<th class='confluenceTh'><b>5</b></th>\n</tr>\n<tr>\n<td class='confluenceTd'> </td>\n<td class='confluenceTd'> </td>\n<td class='confluenceTd'> </td>\n</tr>\n<tr>\n<td class='confluenceTd'> </td>\n<td class='confluenceTd'> </td>\n<td class='confluenceTd'> </td>\n</tr>\n</tbody></table>\n</div>\n
The html for both tables is similar and we don’t have any info about the column width and we can’t reproduce a table similar to the one Jira is showing. Is there any way to know the column width?
Cheers,
Mário Ferreira