Is team calendar supporting REST API for creating events?
I want to create event in team calendar, like Sprints or JIRA tasks(issues) automatically.
Is there any way to do this?
I could not find any API documentation.
Community moderators have prevented the ability to post new answers.
Providing a REST API is one of the longest standing and most popular issues with Team Calendars still - please vote/watch/comment on the following story to further raise awareness for this surprising limitation:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For anyone who stumbles across this post looking for answers (like me), the following Python was what I eventually got working.
import requests
import json
import datetime
baseURI = 'http://localhost:8090/'
resource = 'rest/calendar-services/1.0/calendar/events.json'
headers = { "content-type" : "application/x-www-form-urlencoded" }
data = {"subCalendarId":'calendar-id (can find by viewing calendar in space and clicking on calendar name)',
"eventType":'Events',
"what":'Fridays Meeting',
"person": ['userkey (can find using http://localhost:8090/rest/api/user?username=someusername)'],
"startDate": '06-Jun-2019',
"startTime": '10:00',
"endDate": '06-Jun-2019',
"endTime": '11:00',
"allDayEvent": "false",
"where": 'Blue Room'}
response = requests.put(baseURI + resource, headers=headers, auth=('user', 'password'), data=data, timeout=15)
print('\n\n\n')
print(response)
print(response.text)
This (https://community.atlassian.com/t5/Team-Calendars-for-Confluence/Macro-for-creating-event-from-a-meeting-notes-page/td-p/608653) and this (https://community.atlassian.com/t5/Questions-for-Confluence/Confluence-REST-API-500-server-error-using-Python-requests-Lib/qaq-p/327371) were where I got most of what I needed to know. Happy coding!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.