Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 Confluence

Introducing External Collaboration for Confluence

We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...

199 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you