Company Calendar for Jira v 9.2.x: Calendars
GET /api/1/calendar
Returns a list of all calendars associated with the token.
Response: 200 OK
[
{
"id": 1959,
"sources": [
{
"id": 5655,
"calendarId": 1959,
"emailsEnabled": false,
"eventType": {
"issueRequired": false,
"key": "meeting",
"name": "Meetings",
"projectRequired": false,
"systemType": true,
"usersRequired": true
},
"order": 1,
"value": "{\"color\":\"#7500ca\",\"projectId\":-1,\"condColors\":[],\"name\":\"Dekki's meetings\",\"concurrence\":\"allow\",\"hideStartTime\":false,\"issueFields\":[{\"id\":\"issuekey\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.project\",\"showEvent\":false,\"showInfo\":true},{\"id\":\"event.summary\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.users\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.reporter\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.description\",\"showEvent\":true,\"showInfo\":true}],\"summaryFromSourceName\":false,\"summaryFromIssueSummary\":false}"
},
{
"id": 5656,
"calendarId": 1959,
"emailsEnabled": false,
"eventType": {
"issueRequired": false,
"key": "jira",
"name": "Jira dates",
"projectRequired": false,
"systemType": true,
"usersRequired": false
},
"order": 2,
"value": "{\"color\":\"#cc6fcc\",\"condColors\":[],\"dateRanges\":[],\"singleDates\":[\"duedate\"],\"summaryFromSourceName\":false,\"projectId\":-1,\"name\":\"Dekki's JD source\",\"issueFields\":[{\"id\":\"duedate\",\"showEvent\":false,\"showInfo\":true},{\"id\":\"issuekey\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"summary\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"issuetype\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"status\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"assignee\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"reporter\",\"showEvent\":false,\"showInfo\":true},{\"id\":\"description\",\"showEvent\":false,\"showInfo\":true}],\"hideStartTime\":false}"
}
],
"value": "{\"description\":\"\",\"name\":\"Dekki Gedru's first calendar\",\"usersFromEvents\":true}",
"user": "66625976fc0cc7a600b08977"
},
{
"id": 1995,
"sources": [
{
"id": 5779,
"calendarId": 1995,
"emailsEnabled": false,
"eventType": {
"issueRequired": false,
"key": "jira",
"name": "Jira dates",
"projectRequired": false,
"systemType": true,
"usersRequired": false
},
"order": 1,
"value": "{\"color\":\"#057fff\",\"condColors\":[],\"dateRanges\":[],\"singleDates\":[\"duedate\"],\"summaryFromSourceName\":false,\"projectId\":10336,\"name\":\"Jira dates events\",\"issueFields\":[{\"id\":\"duedate\",\"showEvent\":false,\"showInfo\":true},{\"id\":\"issuekey\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"summary\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"issuetype\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"status\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"assignee\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"reporter\",\"showEvent\":false,\"showInfo\":true},{\"id\":\"description\",\"showEvent\":false,\"showInfo\":true}],\"hideStartTime\":false}"
},
{
"id": 5780,
"calendarId": 1995,
"emailsEnabled": false,
"eventType": {
"issueRequired": false,
"key": "sprint",
"name": "Jira sprints",
"projectRequired": false,
"systemType": true,
"usersRequired": false
},
"order": 2,
"value": "{\"boardId\":132,\"color\":\"#cc6fcc\",\"name\":\"Sprints\",\"projectId\":10336,\"show\":0,\"state\":0,\"hideStartTime\":false}"
},
{
"id": 5781,
"calendarId": 1995,
"emailsEnabled": false,
"eventType": {
"issueRequired": false,
"key": "version",
"name": "Jira versions",
"projectRequired": false,
"systemType": true,
"usersRequired": false
},
"order": 3,
"value": "{\"name\":\"Versions\",\"color\":\"#ff3e05\",\"projectId\":10371,\"show\":0,\"releasedStatus\":0}"
},
{
"id": 5782,
"calendarId": 1995,
"emailsEnabled": false,
"eventType": {
"issueRequired": false,
"key": "trip",
"name": "Business trips",
"projectRequired": false,
"systemType": true,
"usersRequired": true
},
"order": 4,
"value": "{\"color\":\"#40af04\",\"projectId\":0,\"condColors\":[],\"name\":\"Business trips\",\"issuesAsResources\":false,\"concurrence\":\"allow\",\"hideStartTime\":false,\"issueFields\":[{\"id\":\"event.summary\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.users\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.reporter\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.description\",\"showEvent\":true,\"showInfo\":true}],\"summaryFromSourceName\":false,\"summaryFromIssueSummary\":false}"
}
],
"value": "{\"description\":\"\",\"name\":\"Development\",\"usersFromEvents\":true}",
"user": "6666d5194d18cbf6772f4"
}
]
GET /api/1/calendar/{calendarId}
Returns details for a specific calendar, including permissions.
Response codes:
200 OK
404 Not Found
{
"id": 1959,
"publicCalendar": false,
"calendarEditable": false,
"permCalendarEdit": {
"groups": [],
"users": []
},
"eventsEditable": false,
"permEventsEdit": {
"groups": [],
"users": []
},
"eventReporterEdit": false,
"sources": [
{
"id": 5655,
"calendarId": 1959,
"emailsEnabled": false,
"eventType": {
"issueRequired": false,
"key": "meeting",
"name": "Meetings",
"projectRequired": false,
"systemType": true,
"usersRequired": true
},
"order": 1,
"value": "{\"color\":\"#7500ca\",\"projectId\":-1,\"condColors\":[],\"name\":\"Dekki's meetings\",\"concurrence\":\"allow\",\"hideStartTime\":false,\"issueFields\":[{\"id\":\"issuekey\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.project\",\"showEvent\":false,\"showInfo\":true},{\"id\":\"event.summary\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.users\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.reporter\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"event.description\",\"showEvent\":true,\"showInfo\":true}],\"summaryFromSourceName\":false,\"summaryFromIssueSummary\":false}"
},
{
"id": 5656,
"calendarId": 1959,
"emailsEnabled": false,
"eventType": {
"issueRequired": false,
"key": "jira",
"name": "Jira dates",
"projectRequired": false,
"systemType": true,
"usersRequired": false
},
"order": 2,
"value": "{\"color\":\"#cc6fcc\",\"condColors\":[],\"dateRanges\":[],\"singleDates\":[\"duedate\"],\"summaryFromSourceName\":false,\"projectId\":-1,\"name\":\"Dekki's JD source\",\"issueFields\":[{\"id\":\"duedate\",\"showEvent\":false,\"showInfo\":true},{\"id\":\"issuekey\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"summary\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"issuetype\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"status\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"assignee\",\"showEvent\":true,\"showInfo\":true},{\"id\":\"reporter\",\"showEvent\":false,\"showInfo\":true},{\"id\":\"description\",\"showEvent\":false,\"showInfo\":true}],\"hideStartTime\":false}"
}
],
"value": "{\"description\":\"\",\"name\":\"Dekki Gedru's first calendar\",\"usersFromEvents\":true}",
"user": "534534976fc0cc7a60053444"
}POST /api/1/calendar
Creates a new calendar.
Public calendar
{
"publicCalendar": true,
"calendarEditable": true,
"eventsEditable": true,
"value": "{\"name\":\"New public calendar\",\"usersFromEvents\":true}",
"user": "userID"
}Private calendar
{
"publicCalendar": false,
"permCalendarView": {
"groups": [],
"users": []
},
"calendarEditable": false,
"permCalendarEdit": {
"groups": [],
"users": []
},
"eventsEditable": false,
"permEventsEdit": {
"groups": [],
"users": []
},
"eventReporterEdit": false,
"value": "{\"name\":\"New calendar\",\"usersFromEvents\":true}",
"user": "userID"
}PUT /api/1/calendar
Updates an existing calendar.
Important: When updating resources, you must provide the full value JSON object. Any property that is not included in the update request will be overwritten or removed. To preserve all existing properties, always include them in the request body when performing an update.
{
"id": "calendarId",
"publicCalendar": false,
"permCalendarView": {
"groups": [],
"users": []
},
"calendarEditable": false,
"permCalendarEdit": {
"groups": [],
"users": []
},
"eventsEditable": false,
"permEventsEdit": {
"groups": [],
"users": []
},
"eventReporterEdit": false,
"value": "{\"name\":\"Updated calendar\",\"usersFromEvents\":true}",
"user": "userId"
}
DELETE /api/1/calendar/{id}
Deletes the specified calendar.
Deleting a calendar is possible when the token has the permission to delete the calendar.
Response:
200 OK
403 Forbidden