Returns all vacation definitions for current user or only selected one vacation definition.
Path
GET {jira_baseurl}/rest/vacation-manager/1.0/vacation-definition/{userName}?vacationTypeId={vacationTypeId}
Permissions
ADMIN USER SUPERVISOR HR
Path params
Name | Type | Description |
---|
userName | String | User name |
Query params
Name | Type | Description |
---|
vacationTypeId | int | Vacation type Id |
Responses
200 400 500
Example
Example
GET {jira_baseurl}/rest/vacation-manager/1.0/vacation-definition/userName
[
{
"id": 1,
"vacationTypeId": 1,
"userId": "1",
"userName": "userName",
"vacationKindName": "vacation kind name 1",
"startDate": "2018-10-18",
"dayLimit": 0
},
{
"id": 2,
"vacationTypeId": 2,
"userName": "userName",
"vacationKindName": "vacation kind name 2",
"startDate": "2018-10-30",
"dayLimit": 23
}
]