Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,464,714
Community Members
 
Community Events
176
Community Groups

How can I pull a list of all team calendars and related spaces

We are merging two Confluence instances and need to migrate the calendars.  I used this article to get a list of all the calendars but I also need the associated space.  We are not moving all the spaces so we need to narrow down the list to spaces we are moving.

1 answer

1 accepted

0 votes
Answer accepted
Dean Norman Atlassian Team Jan 25, 2022
Hi Jenifer,
       Using the article you linked as a template for the query you could use the following to show the associated spaces - the query below is based on the postgres example with the changes in bold, but a similar change will work for the other database examples:
select um.lower_username as creator, sp.spacename as spacename, tc."NAME" as calendar_name, to_timestamp(CAST(tc."CREATED" AS bigint)/1000) as creation_date
FROM "AO_950DC3_TC_SUBCALS" tc
JOIN spaces sp ON sp.spacekey = tc."SPACE_KEY"
JOIN user_mapping um ON um.user_key = tc."CREATOR"
WHERE tc."PARENT_ID" IS NULL
ORDER BY creator;
Hope this helps!
Dean

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events