Skip to content

Commit 3342354

Browse files
author
Gonchik Tsymzhitov
committed
Jira: Add tempo methods
1 parent 741a2e5 commit 3342354

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

atlassian/jira.py

+25
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,31 @@ def tempo_account_export_accounts(self):
12121212
url = 'rest/tempo-accounts/1/export'
12131213
return self.get(url, headers=headers, not_json_response=True)
12141214

1215+
def tempo_holiday_get_schemes(self):
1216+
"""
1217+
Provide a holiday scheme
1218+
:return:
1219+
"""
1220+
url = 'rest/tempo-core/2/holidayschemes/'
1221+
return self.get(url)
1222+
1223+
def tempo_holiday_get_scheme_members(self, scheme_id):
1224+
"""
1225+
Provide a holiday scheme
1226+
:return:
1227+
"""
1228+
url = 'rest/tempo-core/2/holidayschemes/{}/members'.format(scheme_id)
1229+
return self.get(url)
1230+
1231+
def tempo_holiday_put_into_scheme_member(self, scheme_id, username):
1232+
"""
1233+
Provide a holiday scheme
1234+
:return:
1235+
"""
1236+
url = 'rest/tempo-core/2/holidayschemes/{}/members/{}/'.format(scheme_id, username)
1237+
data = {'id': scheme_id}
1238+
return self.put(url, data=data)
1239+
12151240
"""
12161241
#######################################################################
12171242
# Agile(Formerly Greenhopper) REST API implements #

0 commit comments

Comments
 (0)