Forums

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

Table Transformer - Table merge with conditional column insertion

Brad Johnson
March 24, 2022

Hello All.

I have multiple pages, one for each project each containing two tables of data. I want to merge and transform the data into 1 consolidated table.

Table 1 has basic Project Info in Rows. 1 per project page.

image.png

Table 2 has Project timeline info in rows and columns. 1 per project page.

image.png

What I want is a single table reporting project information, 1 row per project (page) using values from the two tables per project page.

The project info is straight forward (first 5 columns) but I believe I need table transformer to add the timeline columns and populate the cells and that's where I am stuck.

Desired end result

image.png

I've had a bit of a go using examples but I'm not an SQL guy and I haven't seen an example that covers this. Any help would be appreciated.

Thanks in advance.

1 answer

1 accepted

3 votes
Answer accepted
fsim
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 Champions.
March 20, 2013

Can you run this query in the Confluence Database and provide us with the output? It looks like an indexing problem.

SELECT * FROM CONTENT WHERE CONTENTTYPE = 'USERINFO' AND USERNAME = '<username>';

Replace <username> with the user's username. This will help us identify the issue.

Make sure that the user has logged in at least once to Confluence, and that you have tried to Rebuild the Content Indexes from scratch

Deleted user
March 21, 2013

He hadn't logged in to Confluence yet (only JIRA). Once he did and indexes were rebuilt all works as expected.

Thanks

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events