Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Table transformer to add new column in the middle

emagnun
Contributor
November 17, 2021

I want to show Jira Sprint tasks overview in confluence. Below is my source table and the result of table transformer that already has most of what I wanted. I will NOT display source table to user.

Capture.JPG

Question: how do i modify my table transformer to add one more column !done to show unfinished tasks count (To do + In Progress)? Is it possible to add it right after Sprint column? Below is my current SQL query.

Capture.JPG

1 answer

1 accepted

2 votes
Answer accepted
Katerina Kovriga _Stiltsoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2021

Hi @emagnun ,

Please check if this solution suits your case:

Thu 2-1.png

Thu 2-2.png

SELECT T1.'Sprint',
(T1.'Sum of Status To Do' + T1.'Sum of Status In Progress') AS 'Not Done',
T1.'Sum of Status Done' AS 'Done',
T1.'Sum of Status T:' AS 'Total',
ROUND((T1.'Sum of Status Done'*100)/T1.'Sum of Status T:',2) AS 'Completion %'
FROM T1

Thu 2-3.png

emagnun
Contributor
November 18, 2021

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events