Edit the column width for the Jira issues macro
Asked by Jamie Abbott:

I'm using the Jira issues macro in Confluence to pull requirements from Jira into a single table. I'm interested in finding a way to adjust the column width, sometimes the column with a lot of text is compressed and when exported to PDF isn't reader friendly. I'd like to be able to define the column width so every export is consistent.

Is this possible?


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Jamie Abbott](/t5/user/viewprofilepage/user-id/4173527) ,

It is possible with the help of the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app and its [Table Transformer](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro) macro that allows [advanced table cells formatting](https://docs.stiltsoft.com/display/public/TFAC/Advanced+table+cells+formatting).

Wrap your Jira Issues macro into the Table Transformer macro body and use custom SQL queries, for example:

SELECT \*,  
FORMATWIKI("{cell:width=**100px** }" + 'Summary'+ "{cell}") AS 'Summary'  
FROM T\*

![Wed 2-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/119604i9D0EEB79B8D0AA9B/image-size/large?v=v2&px=999 "Wed 2-1.png")![Wed 2-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/119605i1BB0D548B1A5278F/image-size/large?v=v2&px=999 "Wed 2-2.png")

SELECT \*,  
FORMATWIKI("{cell:width=**300px** }" + 'Summary'+ "{cell}") AS 'Summary'  
FROM T\*

![Wed 2-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/119606i900F162D1FD97FB1/image-size/large?v=v2&px=999 "Wed 2-3.png")![Wed 2-4.png](https://community.atlassian.com/t5/image/serverpage/image-id/119607i76BB85E5219198C1/image-size/large?v=v2&px=999 "Wed 2-4.png")Hope this helps.

comments: author: Jamie Abbott
body: Thanks, is there a way of doing this without a pluggin?


author: Katerina Kovriga {Stiltsoft}
body: Seems there is no any workaround with the standard Confluence tools.


author: Jamie Abbott
body: Okay thanks - do you know what dictates the column widths? I have two tables with similar information, and the column widths differ in each.


author: Katerina Kovriga {Stiltsoft}
body: Difficult to say honestly, especially what concerns Cloud formatting.

I've also found several issues for Server/DC and Cloud where customers ask Atlassian to make the Jira Issues column width resizeable:

<https://jira.atlassian.com/browse/CONFSERVER-36044>

<https://jira.atlassian.com/browse/CONFSERVER-23286>

<https://jira.atlassian.com/browse/CONFCLOUD-3393>

There are several examples of custom HTML user macros that are claimed to be helpful - maybe you'll get some hints from the threads.


author: Katrina Atkinson
body: Is there a way to include this SQL for the column width but remove the column lines? I like how jira tables look in the all grey with no lines but need with width as well.

comments: author: Stiltsoft support
body: Hi [@Katrina Atkinson](/t5/user/viewprofilepage/user-id/5029276) ,

Unfortunately, this is not possible with the help of the Table Transformer macro. The macro treats source tables as mini SQL databases, so it "draws cells" around data units.

As a workaround, you may [change the border color](https://docs.stiltsoft.com/tfac/cloud/advanced-table-cells-formatting-58426218.html#Advancedtablecellsformatting-Addingbordercolor?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) (please navigate to the "Adding border color" if the anchor is broken).


author: Katrina Atkinson
body: With lots of troubleshooting I got it!

I added the Edit 'Table Transformer' Macro, kept the SQL:

*SELECT \*,*   
*FORMATWIKI("{cell:width=500px AS 'Issues',*

*FROM T\**

Then I added this to a Div with class = .hide

included the CSS for the Div to be:

.hide {

display: none;

visibility: hidden;

display: block;

opacity: 0;

border-style: none;

height: 1px;

}

Then I added the same jira table with no divs or table macros below. The top one remained hidden, but the column width copied over. Keeping the uniform look of a jira table with the columns edited.


Tags: cloud

confluence-cloud

filter

ms-excel

table