Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,884
Community Members
 
Community Events
168
Community Groups

Issue with field sorting using Table Transformer and Pivot Table in Confluence

Issue with field sorting using Table Transformer and Pivot Table in Confluence.

I am using Table Transformer macro and have come-up with a sort order of a column.

Column Name: Approval Category

Values: Req, QA, BSA, UAT

 

However, when I am using a Pivot on top of Table Transformer, my column Sort Order is changing.

I am getting the sorting in this form (which I do NOT want).

Values: BSA, QA, Req, UAT

 

Is there a way to retain my sort order in Pivot, either using SQL or on JIRA?

Values: Req, QA, BSA, UAT

1 answer

Hi @Santanu Roy ,

You have two options to solve the problem.

The first one is to choose the Preserve original sorting type of sorting for your Pivot macro. If the default sorting or the sequence of mentioned items in the original table suit you, it will be a perfect workaround:

Wed 1-1.pngWed 1-2.pngThe second option is to use an additional Table Transformer macro after your Pivot Table macro and set your own custom sorting strictly:

Wed 1-3.pngType in your custom SQL query:

Wed 1-4.pngSELECT * FROM T*
ORDER BY
CASE WHEN T1.'Approval Category' LIKE "Req" THEN "1"
WHEN T1.'Approval Category' LIKE "QA" THEN "2"
WHEN T1.'Approval Category' LIKE "BSA" THEN "3"
WHEN T1.'Approval Category' LIKE "UAT" THEN "4"
ELSE T1.'Approval Category' END ASC

Wed 1-5.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

173 views 1 6
Read article

Atlassian Community Events