[REST 1.1] Statistics

GET

Get instances statistics by logged user

Returns instances statistics for logged user

Permissions: ADMIN USER SUPERVISOR HR

GET {jira_baseurl}/rest/vacation-manager/1.0/statistics/user?startDate=ISO_DATE&endDate=ISO_DATE

Responses: 200 500

Query params

Name

Type

Description

Name

Type

Description

startDate

String

Start date. ISO 8601 format

startDate

String

End date. ISO 8601 format

Path
GET {jira_baseurl}/rest/vacation-manager/1.0/statistics/user?startDate=2011-10-11&endDate=2011-10-21
Response
{ "user": { "id": 10000, "name": "userName", "displayName": "user", "active": true }, "vacationTypeInstances": { "1": { "vacationType": { "id": 1, "name": "daily vacation type", "description": "", "issueTypeId": "10100", "kindType": "ONE_TIME", "periodDefinition": {}, "hasEndDate": true, "hasDayLimit": true, "hasCarryOver": false, "vacationDocumentPeriodType": "DAILY" }, "instances": [] } }, "freeDays": [ "2011-10-11", "2011-10-12", "2011-10-18", "2011-10-19" ] }

Get instances statistics by user

Returns instances statistics for a given user. HR and Admin can get statistics for any user. Supervisor can get statistics for their subordinates. Regular users can get only their statistics.

Permissions: ADMIN USER SUPERVISOR HR

Responses: 200 500

Path param

Name

Type

Description

Name

Type

Description

userName

String

User Name

Query params

Name

Type

Description

Name

Type

Description

startDate

String

Start date. ISO 8601 format

startDate

String

End date. ISO 8601 format

Path
Response

Get instances statistics by vacation type

Returns instances statistics for a given vacation type.

Permissions: ADMIN USER SUPERVISOR HR

Responses: 200 500

Path param

Name

Type

Description

Name

Type

Description

vacationTypeId

int

Vacation type ID

Query params

Name

Type

Description

Name

Type

Description

startDate

String

Start date. ISO 8601 format

startDate

String

End date. ISO 8601 format

Path
Response

Feel free to tell us what topic should be covered: vacationmanager@psc-software.atlassian.net