Can't embed Team Calendar on page
Asked by Peter Natale:

Hi All

I am trying to embed a team calendar on a page within confluence. If I go to the 'Calendars' area of the space i can create calendars and events no problem but when i try to embed it fails.

![image.png](/t5/image/serverpage/image-id/66754i0AF52953E6EA120A/image-dimensions/578x206?v=v2 "image.png")

1. Using the 'Embed' link from the Calendar edited onto the page just puts a link on the page

![image.png](/t5/image/serverpage/image-id/66751iF94DA71DBF156AC3/image-dimensions/459x76?v=v2 "image.png")

2. Inserting the 'Team Calendar Macro' does not give me the Add New Calendar, Subscribe to Existing Calendar etc window interface, it just asks for a Calendar in the macro edit window. If you add this you get a blank calendar that says 'You have not created or subscribed to any calendars', even if i use the same name.

![image.png](/t5/image/serverpage/image-id/66753i47FEA815987D7DE0/image-dimensions/385x255?v=v2 "image.png")

I am using Confluence Cloud trial version and a trial of Team Calendars on Chrome.

Thanks!

Peter


Answers:
author: Diego
body: Hello there, [@Peter Natale](/t5/user/viewprofilepage/user-id/3564435)!

Thank you for pointing out this unexpected behaviour. Embedding a calendar can be a quite useful tool. Be it when we create pages for events or need to organise scheduled workflow documentation.

I was *++able to replicate your issue++* quite easily. With this in mind, I could find a bug report that deals with this situation. Here, take a look:
> * **++*[\[CONFCLOUD-66949\] Cannot embed Team Calendars with Team Calendars macro](https://jira.atlassian.com/browse/CONFCLOUD-66949)*++**

I encourage you to *++vote and watch this issue++*. Voting can help increase the issue visibility and watching will keep you up to date with everything posted there!

Currently, the workaround I could come up with involves iFrames and *++is far from perfect++*. But here you go:

> 1. *Create a new page*
> 2. *If using the new editor, be sure to click the \<- -\> symbol right under the publish button*
>    1. *this will set the page width to full*
> 3. *Insert the iFrame Macro*
> 4. *In the iFrame source, insert the calendar embedding link*
> 5. *Set the Width of the macro to be 100%*
> 6. *Set the height to be something that shows all calendar (I settled for 700px)*
> 7. *Save the macro*
> 8. *Publish the page*

The downside of this workaround is that the *++whole calendar page will be added++* to your newly created page. Here is what it looks like on my instance:

![MyPC.png](https://community.atlassian.com/t5/image/serverpage/image-id/66959i1EC5AA3E3F65ADC9/image-dimensions/399x242?v=v2 "MyPC.png")

Hope my answer helps you out, Peter! Looking forward to your reply.

comments: author: Peter Natale
body: Thanks Diego

I have voted and added comment to the issue. Its more than minor, this issue destroys the business case for Team Calendars as a paid add on. The iFrame work around, as you say, is not usable and will create a negative user experience.

I guess i just have to wait or find an alternate product.

Cheers

Peter


author: Evan Gordon
body: This "workaround" is actually not worth implementing. The calendar is not readable or at all useful presented this way. Atlassian you need to fix this. Embedding calendars should be a simple task.


author: Dario B
body: Hi [@Evan Gordon](/t5/user/viewprofilepage/user-id/3584234) ,

A workaround for this issue has been added to the bug ticket just yesterday. Can you kindly test if it works for you as well?
>
> ### Workaround {#toc-hId-1111110999}
>
> As a workaround, it has been confirmed that that the user can paste the calendar ID on the calendar field (for example, 2307a1bb-a01b-4b23-a470-5783d8b8e29b):
>
> 1. Go to the desired calendar to be added.
> 2. On the URL, make sure to only copy the ID (in our example, 2307a1bb-a01b-4b23-a470-5783d8b8e29b)
> 3. Open a page and include the macro
> 4. Paste the ID on the "Calendar" field
> 5. Tap the preview button and then, save the configuration.

Cheers,  
Dario


author: Evan Gordon
body: YES! it works. Thanks Dario. Just to clarify for other people:

* In step 3, you you must use the "team calendars" macro instead of the "iframes" macro as suggested above.
* This workaround works!

Thanks so much!


author: Dario B
body: Thanks for confirming [@Evan Gordon](/t5/user/viewprofilepage/user-id/3584234) ! I am happy to know it helped.

[@Peter Natale](/t5/user/viewprofilepage/user-id/3564435) I forgot to mention you before so I am not sure you saw the message. Have you tried the workaround already?


author: Peter Natale
body: [@Dario B](/t5/user/viewprofilepage/user-id/502402) Yes i tested this and it does work. It is fiddly though and not something i would push out to my user base, it would create resistance. It's something i will setup for people.

Cheers

Peter


author: Dario B
body: Hi [@Peter Natale](/t5/user/viewprofilepage/user-id/3564435) ,

I know this is not optimal, but it is a temporary workaround that can be used while waiting for the bug to be fixed.

If you haven't already done so, you may want to watch the bug ticket so that you will be notified in case of any progress.

Cheers,  
Dario


author: Rohan Deelen
body: Hi All,

I saw that this issue was reported last year. Has this been resolved? I am still having the same behaviour.

I am grateful there is a workaround, but seriously this should have been fixed by now.

Thanks,

Rohan


author: St?phanie La Manna
body: Hi,

Issue still there.

Thanks,

St?phanie


author: Gabriela Carminatti
body: yes, I am having the same problem. How is that possible they didn't fix yet?


author: St?phanie La Manna
body: I fixed it by using the code of the calendar (retrieve from the Embed URL). I added this code to the plug in on my page.

It fixed the issue. Now I can add any calendar to my space.


author: Gabriela Carminatti
body: [@Dario B](/t5/user/viewprofilepage/user-id/502402) I did the workaround and it simply says it couldn't find the ID. What's happening?


author: Gabriela Carminatti
body: [@St?phanie La Manna](/t5/user/viewprofilepage/user-id/3866569) did you do it with a JIRA calendar or a Confluenze Calendar?


author: St?phanie La Manna
body: I did it on Confluence in the "Calendar \*" fields. It works. But I think at the beginning I had the same warning than you. Few days after that, I noticed that the ID calendar has been automatically converted to the real name.

Now it is fixed.


Tags: cloud

team-calendars-for-confluence