i try to set tasks with a form written in HTML by using the POST Method to send the data to a PHP File, which then should transmit the data to the Task Option from Nextcloud. But how do i set Options in Tasks with PHP? I have another php file which writes Calendar Activities with PHP. It looks like this:
BEGIN:VCALENDAR
PRODID:-//SomeExampleStuff//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20190717T132208
LAST-MODIFIED:20190717T132208
DUID:" . $Variable1 . "
SUMMARY:" . $Variable2 . "
DTSTART;TZID=Europe/Berlin:" . $Variable3 . “T000000
DTEND;TZID=Europe/Berlin:” . $Variable4 . “T010000
DESCRIPTION:” . $Variable5 . "
LOCATION:" . $Variable6 . "
END:VEVENT
END:VCALENDAR";TSTAMP:20190717T132208
What is the Option or the Event that i need to program it for Tasks?
i’m unsure which options are meant. Such things like priority, progress, due date, etc …?
An Tasks-entry creates a calendar object which contains a: BEGIN:VTODO
and END:VTODO
If you have access to your nextcloud database, then you could easly explore already existing tasks for their options.
Execute following SQL-query (replace database table prefix ‘oc_’ if you use a divergent prefix): select * from oc_calendarobjects where componenttype = 'VTODO';
It’s also possible to download the whole calendar object (which contains the tasks) via Tasks-App.
Click on the 3 dots beside a calendar to open the menu and choose Download.
So the Progress is as following: I programmed a HTML site in which i set a calender Event. I would love to programm the site even further by being able to create a task for a certain calender group which i also select via a Selectbox. But i cant find the BEGIN: NOR The END:. Is it only BEGIN:VTODO and END:VTODO and inbetween i can programm the common things like DESCRIPTION: etc.?