@@ -307,7 +307,8 @@ def get_comment_property(self, comment_id, property_key):
307307 :param property_key: str
308308 :return:
309309 """
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 )
311312 return self .get (url , data = data )
312313
313314 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):
318319 :param value_property: object
319320 :return:
320321 """
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 )
322324 data = {'value' : value_property }
323325 return self .put (url , data = data )
324326
@@ -329,7 +331,8 @@ def delete_comment_property(self, comment_id, property_key):
329331 :param property_key: str
330332 :return:
331333 """
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 )
333336 return self .delete (url )
334337
335338 #######################################################################################################
@@ -1082,10 +1085,10 @@ def get_updated_worklogs(self, since, expand=None):
10821085 url = 'rest/api/3/worklog/updated'
10831086 params = {}
10841087 if since :
1085- params ['since' ] = str (int (since * 1000 ))
1088+ params ['since' ] = str (int (since * 1000 ))
10861089 if expand :
10871090 params ['expand' ] = expand
1088-
1091+
10891092 return self .get (url , params = params )
10901093
10911094 def get_worklogs (self , ids , expand = None ):
@@ -1392,7 +1395,7 @@ def create_project_from_raw_json(self, json):
13921395 :param json:
13931396 :return:
13941397 """
1395- return self .post (json = json )
1398+ return self .post ('rest/api/2/project' , json = json )
13961399
13971400 def delete_project (self , key ):
13981401 """
@@ -1438,7 +1441,8 @@ def get_project_versions(self, key, expand=None):
14381441 params ['expand' ] = expand
14391442 return self .get ('rest/api/2/project/{}/versions' .format (key ), params = params )
14401443
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 ):
14421446 """
14431447 Returns all versions for the specified project. Results are paginated.
14441448 Results can be ordered by the following fields:
@@ -1789,7 +1793,7 @@ def get_all_time_tracking_providers(self):
17891793 """
17901794 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.
17911795 """
1792-
1796+
17931797 url = 'rest/api/3/configuration/timetracking/list'
17941798 return self .get (url )
17951799
@@ -1805,7 +1809,7 @@ def get_time_tracking_settings(self):
18051809 """
18061810 Returns the time tracking settings. This includes settings such as the time format, default time unit, and others.
18071811 """
1808-
1812+
18091813 url = 'rest/api/3/configuration/timetracking/options'
18101814 return self .get (url )
18111815
@@ -2126,7 +2130,6 @@ def get_workflows_paginated(self, startAt=None, maxResults=None, workflowName=No
21262130
21272131 return self .get (url , params = params )
21282132
2129-
21302133 def get_all_statuses (self ):
21312134 """
21322135 Returns a list of all statuses
0 commit comments