Table Transformer - RAG status from JIRA filter not displaying correctly
Asked by Josh Sim:

Hi all, I have been looking for a way to constrain the column width of the output of a JIRA issue macro in confluence. This led me to the table transformer macro, which I used by wrapping it over the JIRA issue macro (as shown in the below screen grab) and used the included SQL to define column widths at set values. The issue I came across is that the RAG status no longer displays correctly in this new wrapped format (as highlighted in the below screen grabs). The problem appears and disappears depending on the number of issues being displayed.  
I have also included the SQL that I am using at present to set the widths (the output of this is shown in the 'RAG status kind of working' image, where all statuses displaying but are incorrectly set to yellow). An additional issue I have of lower importance but potentially related is that the wrapping of the macro within table transformer removes the link from the 'key' column. If I can have that restored I'd love to know how.   
Many thanks for any and all help in advance!  
![question1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/161459iC4D67E6387DC58E8/image-size/large?v=v2&px=999 "question1.PNG")![question2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/161460i6A25A3F81793E4EF/image-size/large?v=v2&px=999 "question2.PNG")![question3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/161461i5B3DB3E20DEA9C5C/image-size/large?v=v2&px=999 "question3.PNG")![question4.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/161462iFD5AC8F20F46B7B0/image-size/large?v=v2&px=999 "question4.PNG")![question5.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/161463i07959F5F83449BF9/image-size/large?v=v2&px=999 "question5.PNG")


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Josh Sim](/t5/user/viewprofilepage/user-id/4567592) ,

What concerns the first part of the case, please check the Table Filter and Charts for Confluence app version - the current one is 7.9.13. If you use the older one, please update the app and check if the unstable behavior still persists.

Besides, check the names of your columns (uppercase and lowercase letters, etc.) and use an autocomplete function of the Table Transformer macro.

If nothing works, please raise a support request [here](https://jsd.stiltsoft.com/servicedesk/customer/portal/2/user/login?destination=portal%2F2) and will try to troubleshoot the issue.

What about the missing links to the "Key" field, we can suggest using the following SQL query:

![Wed 4-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/161515i2CA9C976CCC8EE23/image-size/large?v=v2&px=999 "Wed 4-1.png")

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

![Wed 4-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/161516i80DA1C18EB7A2366/image-size/large?v=v2&px=999 "Wed 4-2.png")

When we use commas instead of the pluses, we preserve the initial column formatting (clickable links for your case) and add additional custom column formatting (that is width).

Please check the documentation related to the preserving of the initial cell formatting [here](https://docs.stiltsoft.com/display/public/TFAC/Advanced+table+cells+formatting#Advancedtablecellsformatting-Preservinginitialcellformatting).

comments: author: Josh Sim
body: Hi Katerina, thanks so much for your assistance, my issue regarding links is resolved now, much appreciated. Re: the first issue I have triple checked my column naming is correct using autocomplete to no avail. I've been informed that the app version in use is 7.1.9 and I have requested an update.

In the meantime, one last twist in the issue: when I transpose the chart all the RAG statuses show up correctly? This is of course not the layout I am after but nonetheless demonstrates that it is somehow possible.![question6.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/161675iFD7EDDDA1D2642A0/image-size/large?v=v2&px=999 "question6.PNG")


author: Katerina Kovriga {Stiltsoft}
body: Hi Josh,

It's a very strange behavior indeed. If the update doesn't work, please raise a [support ticket](https://jsd.stiltsoft.com/servicedesk/customer/portal/2/user/login?destination=portal%2F2), attach the Page Storage Format (menu ... -\> View Storage Format) and specify your current Confluence version (as I understand, your hosting is Server).


author: Josh Sim
body: Thanks Katerina, we are in the process of updating our version and should that not work I'll raise a ticket and edit this response.


author: Josh Sim
body: Hi [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) ,

We are currently updated to version 7.4.0 of the Table Filter and Charts for Confluence app. As I have no idea when we'll get all the way up to date I'm going to pursue a support ticket to see if this issue can be replicated and resolved.  

If I could just attach a couple adjacent queries to the above if you've got a moment:

1. It seems that formatting cell width to a certain number of pixels is often ignored? This has occurred in the case of trying to restrict large text fields to say, 300px so I imagine that there is some sort of hidden minimum. Is this the case that I should expect the fixed width to be exceeded when that cell contains a large amount of content?

2. Because in JIRA you can have multiple custom fields (and therefor columns) with the same name but different field codes, I would expect to be able to differentiate them in the macro. However, in such a case with the rag status, I have added both fields to the 'columns to display' section of the jira issue/filter nested inside the Table Transformer macro and I can still only see 1 'T1.RAG Status' column to select (cannot screenshot bc it is a dropdown). Is this just an incompatibility?![rag issue.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/164628iB7A498F43B70FC81/image-size/large?v=v2&px=999 "rag issue.PNG")![rag issue2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/164627iB2AD2E58861A5A96/image-size/large?v=v2&px=999 "rag issue2.PNG")

Again, any and all help is much appreciated!


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Josh Sim](/t5/user/viewprofilepage/user-id/4567592) ,

The Table Transformer indeed is not supposed to understand more than one column with the same name - you can check the case with a small manually created table.

If you have two columns with the same names and just display them (set width or count smth using other columns), then everything is ok.

If you try to perform any operation with it and paste the "T1.Duplicate column name" into your SQL query, you'll get an error message that the Table Transformer detects several columns with the same name and can't choose what column to refer to.

What concerns the width of the columns, please, attach a screenshot of your Jira Issues table to the ticket (the tickets are private, nobody will see your data), so we can see how much text you place here. As for now, we can't replicate the issue. I mean we take the whole Word page with dummy text (Times New Roman 12), paste the text into our tables, set the width as 300 px and 200 px and everything works fine for us.


author: Josh Sim
body: Thanks for this [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) I will open a ticket with the relevant info what concerning the column width issue. Cheers!


Tags: confluence-server

format

jira-software-server

macro

server

stiltsoft

table-transformer