Company Calendar for Jira v 9.2.x: Sources

Company Calendar for Jira v 9.2.x: Sources

POST /api/1/source

{ "eventTypeId": <eventTypeId>, "calendarConfigurationId": <calendarId>, "emailsEnabled": false, "value": "{\"color\":\"#0fff04\",\"projectId\":-1,\"condColors\":[],\"name\":\"New source\",\"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}" }

PUT /api/1/source

Important: When updating resources, always send the full value JSON object. Any omitted property will be overwritten or removed, so include all properties you want to keep.


GET /api/1/source/{sourceId}

{ "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}" }

DELETE /api/1/source/{id}

Deletes a source.

Deleting a source is possible when the token has the permission to delete the source.

Response:
200 OK
403 Forbidden