@@ -307,7 +307,8 @@ def get_comment_property(self, comment_id, property_key):
307
307
:param property_key: str
308
308
:return:
309
309
"""
310
- url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}' .format (commentId = comment_id , propertyKey = property_key )
310
+ url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}' .format (commentId = comment_id ,
311
+ propertyKey = property_key )
311
312
return self .get (url , data = data )
312
313
313
314
def set_comment_property (self , comment_id , property_key , value_property ):
@@ -318,7 +319,8 @@ def set_comment_property(self, comment_id, property_key, value_property):
318
319
:param value_property: object
319
320
:return:
320
321
"""
321
- url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}' .format (commentId = comment_id , propertyKey = property_key )
322
+ url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}' .format (commentId = comment_id ,
323
+ propertyKey = property_key )
322
324
data = {'value' : value_property }
323
325
return self .put (url , data = data )
324
326
@@ -329,7 +331,8 @@ def delete_comment_property(self, comment_id, property_key):
329
331
:param property_key: str
330
332
:return:
331
333
"""
332
- url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}' .format (commentId = comment_id , propertyKey = property_key )
334
+ url = 'rest/api/2/comment/{commentId}/properties/{propertyKey}' .format (commentId = comment_id ,
335
+ propertyKey = property_key )
333
336
return self .delete (url )
334
337
335
338
#######################################################################################################
@@ -1082,10 +1085,10 @@ def get_updated_worklogs(self, since, expand=None):
1082
1085
url = 'rest/api/3/worklog/updated'
1083
1086
params = {}
1084
1087
if since :
1085
- params ['since' ] = str (int (since * 1000 ))
1088
+ params ['since' ] = str (int (since * 1000 ))
1086
1089
if expand :
1087
1090
params ['expand' ] = expand
1088
-
1091
+
1089
1092
return self .get (url , params = params )
1090
1093
1091
1094
def get_worklogs (self , ids , expand = None ):
@@ -1392,7 +1395,7 @@ def create_project_from_raw_json(self, json):
1392
1395
:param json:
1393
1396
:return:
1394
1397
"""
1395
- return self .post (json = json )
1398
+ return self .post ('rest/api/2/project' , json = json )
1396
1399
1397
1400
def delete_project (self , key ):
1398
1401
"""
@@ -1438,7 +1441,8 @@ def get_project_versions(self, key, expand=None):
1438
1441
params ['expand' ] = expand
1439
1442
return self .get ('rest/api/2/project/{}/versions' .format (key ), params = params )
1440
1443
1441
- def get_project_versions_paginated (self , key , start = None , limit = None , order_by = None , expand = None , query = None , status = None ):
1444
+ def get_project_versions_paginated (self , key , start = None , limit = None , order_by = None , expand = None , query = None ,
1445
+ status = None ):
1442
1446
"""
1443
1447
Returns all versions for the specified project. Results are paginated.
1444
1448
Results can be ordered by the following fields:
@@ -1789,7 +1793,7 @@ def get_all_time_tracking_providers(self):
1789
1793
"""
1790
1794
Returns all time tracking providers. By default, Jira only has one time tracking provider: JIRA provided time tracking. However, you can install other time tracking providers via apps from the Atlassian Marketplace.
1791
1795
"""
1792
-
1796
+
1793
1797
url = 'rest/api/3/configuration/timetracking/list'
1794
1798
return self .get (url )
1795
1799
@@ -1805,7 +1809,7 @@ def get_time_tracking_settings(self):
1805
1809
"""
1806
1810
Returns the time tracking settings. This includes settings such as the time format, default time unit, and others.
1807
1811
"""
1808
-
1812
+
1809
1813
url = 'rest/api/3/configuration/timetracking/options'
1810
1814
return self .get (url )
1811
1815
@@ -2126,7 +2130,6 @@ def get_workflows_paginated(self, startAt=None, maxResults=None, workflowName=No
2126
2130
2127
2131
return self .get (url , params = params )
2128
2132
2129
-
2130
2133
def get_all_statuses (self ):
2131
2134
"""
2132
2135
Returns a list of all statuses
0 commit comments