leantime icon indicating copy to clipboard operation
leantime copied to clipboard

[FEATURE] CalDAV support

Open LightTemplar opened this issue 4 years ago • 7 comments

Do you have any plans for support of CalDAV? For todos, for milestones for each member of project.

LightTemplar avatar Oct 04 '20 21:10 LightTemplar

We are working on a ical export, let me check what it would take to use CalDav.

marcelfolaron avatar Oct 16 '20 11:10 marcelfolaron

We are working on a ical export, let me check what it would take to use CalDav.

Hi, any update on iCal or CalDav support? This would be the last piece of the puzzle to enable my company to make the leap over to Leantime.

jd6-37 avatar Apr 01 '21 09:04 jd6-37

Not yet. I am not sure when I will get to it. Might be another month or so.

On Thu, Apr 1, 2021 at 5:28 AM j26w @.***> wrote:

We are working on a ical export, let me check what it would take to use CalDav.

Hi, any update on iCal or CalDav support? This would be the last piece of the puzzle to enable my company to make the leap over to Leantime.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/Leantime/leantime/issues/333#issuecomment-811781376, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALG4EFRSXOMHZA5BESKPDJTTGQ4FBANCNFSM4SD6OOAQ .

marcelfolaron avatar Apr 01 '21 13:04 marcelfolaron

Not yet. I am not sure when I will get to it. Might be another month or so. On Thu, Apr 1, 2021 at 5:28 AM j26w @.***> wrote: We are working on a ical export, let me check what it would take to use CalDav. Hi, any update on iCal or CalDav support? This would be the last piece of the puzzle to enable my company to make the leap over to Leantime. — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub <#333 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALG4EFRSXOMHZA5BESKPDJTTGQ4FBANCNFSM4SD6OOAQ .

Hi, any update on this feature? Is it still planned?

jd6-37 avatar Apr 04 '22 13:04 jd6-37

Bump. I, too, am eagerly awaiting for a CalDAV server to be integrated into (or with) such that users could selectively subscribe to Kanban tasks they're interested in or affected by via respective calendar entries. Also, determining through filter or trigger definitions when a task or activity therein would be added to a calendar feed would be most useful. In implementing this so, Leantime would provide an extremely useful differentiator from similar solutions, allowing end users to more easily keep track of their schedules. Among other advantages, it permitted end users to set themselves calendar alerts according to their personal situation, having a full view of commitments.

photonzoo avatar Aug 25 '22 18:08 photonzoo

Would a one way sync be sufficient? (eg get tasks from leantime but not editable in the external calendar)

On Thu, Aug 25, 2022 at 2:06 PM Photonzoo @.***> wrote:

Bump. I, too, am eagerly awaiting for a CalDAV server to be integrated into (or with) such that users could selectively subscribe to Kanban tasks they're interested in or affected by via respective calendar entries. Also, determining through filter or trigger definitions when a task or activity therein would be added to a calendar feed would be most useful. In implementing this so, Leantime would provide an extremely useful differentiator allowing end users to more easily keep track of their schedules. Among other advantages, it would permit end users to set themselves calendar alerts according to their personal situation, having a full view of commitments.

— Reply to this email directly, view it on GitHub https://github.com/Leantime/leantime/issues/333#issuecomment-1227600135, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALG4EFT5KSPIIB3L7ZSLCVDV26Y2NANCNFSM4SD6OOAQ . You are receiving this because you were assigned.Message ID: @.***>

marcelfolaron avatar Aug 25 '22 18:08 marcelfolaron

Same here. Ideally CalDAV since that will allow my clients to use Thunderbird or Outlook to pull the data in. Read only (one way) is a start. It will at least unlock calendar data. Businesses will naturally be checking their calendar data (personal and CalDAV'd) on their mobile device or email software and require to have it "all in one place" and not distributed between applications. I could use this feature right away if it were present.

compumatter avatar Sep 19 '22 20:09 compumatter

I have made a simple prototype to [Export ICAL]

Feature -Export All Calendar Events in the Logged In Account into ICAL -Include Active Calendar Items and Tickets -Requires manual Download, Upload ICAL

Edit this File /src/domain/calendar/templates/showMyCalendar.tpl.php

Note I created A button class=ical When I click the button, it would extract the events

  1. Add download function Within

    function download(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename);

     element.style.display = 'none';
     document.body.appendChild(element);
    
     element.click();
    
     document.body.removeChild(element);
    

    } Screenshot 2022-09-27 at 11 50 24 PM

1b) Get Events Screenshot 2022-09-27 at 11 50 46 PM

  1. Prepare the Events and Write to ICAL format

//Export to ICAL Format -2022-09-27 jQuery('.ical').click(function() { if (!events || events.length == 0) return ''

        let body = ''
        if (events && events.length > 0) {
            events.forEach((item) => {
                body += `

BEGIN:VEVENT UID:ticket-${item.id} DTSTART;VALUE=DATE:${item.startDate} DTEND;VALUE=DATE:${item.endDate} SUMMARY:${item.title} ESCRIPTION:'' END:VEVENT` })

            let template = `BEGIN:VCALENDAR

CALSCALE:GREGORIAN METHOD:PUBLISH PRODID:-//Test Cal//EN VERSION:2.0 ${body} END:VCALENDAR` download('event.ics', template) } })

Screenshot 2022-09-27 at 11 50 52 PM

3)Add the button Above
<div id="calendar"></div>

Add the button

Result <a href='#/' class="ical btn btn-secondary btn-rounded"><i class='iconfa-minus'></i> Export ICAL</a> <div id="calendar"></div>

calawhkbu avatar Sep 27 '22 12:09 calawhkbu

This is awesome, thank you. Could you send me those files or create a Pull Request so I can add it?

marcelfolaron avatar Sep 27 '22 18:09 marcelfolaron

ical export was added a while ago and caldav is not planned right now

marcelfolaron avatar Feb 09 '24 00:02 marcelfolaron

Thank you. I did see that. Works as expected.

compumatter avatar Feb 09 '24 03:02 compumatter