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

Creating team calendar event using REST API

Hansoo Bae May 8, 2016

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. 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2016

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:

 

Hansoo Bae May 8, 2016

Thanks. I voted for this issue!

5 votes
sarahc June 5, 2019

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!

TAGS
AUG Leaders

Atlassian Community Events