Skip to content

Commit 5a69fd4

Browse files
Gonchik TsymzhitovGonchik Tsymzhitov
authored andcommitted
Prepare a new release
1 parent 69368ef commit 5a69fd4

11 files changed

+252
-207
lines changed

atlassian/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1.15.2
1+
1.15.3
22

atlassian/bitbucket.py

Lines changed: 76 additions & 39 deletions
Large diffs are not rendered by default.

atlassian/jira.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# coding=utf-8
22
import logging
33
import re
4-
from requests.exceptions import HTTPError
54
from .rest_client import AtlassianRestAPI
65

76
log = logging.getLogger(__name__)
@@ -2440,7 +2439,8 @@ def update_partially_sprint(self, sprint_id, data):
24402439
A sprint can be started by updating the state to 'active'.
24412440
This requires the sprint to be in the 'future' state and have a startDate and endDate set.
24422441
A sprint can be completed by updating the state to 'closed'.
2443-
This action requires the sprint to be in the 'active' state. This sets the completeDate to the time of the request.
2442+
This action requires the sprint to be in the 'active' state.
2443+
This sets the completeDate to the time of the request.
24442444
Other changes to state are not allowed.
24452445
The completeDate field cannot be updated manually.
24462446
:param sprint_id:
@@ -2509,10 +2509,10 @@ def get_audit_records(self, offset=None, limit=None, filter=None, from_date=None
25092509
it will be set do default value: 1000)
25102510
:param filter: string = text query; each record that will be returned
25112511
must contain the provided text in one of its fields
2512-
:param from: string - timestamp in past; 'from' must be less or equal 'to',
2512+
:param from_date: string - timestamp in past; 'from' must be less or equal 'to',
25132513
otherwise the result set will be empty only records that
25142514
where created in the same moment or after the 'from' timestamp will be provided in response
2515-
:param to: string - timestamp in past; 'from' must be less or equal 'to',
2515+
:param to_date: string - timestamp in past; 'from' must be less or equal 'to',
25162516
otherwise the result set will be empty only records that
25172517
where created in the same moment or earlier than the 'to'
25182518
timestamp will be provided in response
@@ -2539,4 +2539,4 @@ def post_audit_record(self, audit_record):
25392539
:return:
25402540
"""
25412541
url = "rest/api/2/auditing/record"
2542-
return self.post(url, data=audit_record)
2542+
return self.post(url, data=audit_record)

atlassian/utils.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,22 @@ def html_table_header_row(data):
8080
def html_row_with_ordered_headers(data, headers):
8181
"""
8282
>>> headers = ['administrators', 'key', 'leader', 'project']
83-
>>> data = {'key': 'DEMO', 'project': 'Demonstration', 'leader': '[email protected]', 'administrators': ['[email protected]', '[email protected]']}
83+
>>> data = {'key': 'DEMO', 'project': 'Demonstration',
84+
'leader': '[email protected]',
85+
'administrators': ['[email protected]', '[email protected]']}
8486
>>> html_row_with_ordered_headers(data, headers)
85-
'\\n\\t<tr><td><ul><li><a href="mailto:[email protected]">[email protected]</a></li><li><a href="mailto:[email protected]">[email protected]</a></li></ul></td><td>DEMO</td><td>[email protected]</td><td>Demonstration</td></tr>'
87+
'\\n\\t<tr><td><ul>
88+
<li><a href="mailto:[email protected]">[email protected]</a></li>
89+
<li><a href="mailto:[email protected]">[email protected]</a></li>
90+
</ul></td><td>DEMO</td><td>[email protected]</td><td>Demonstration</td></tr>'
8691
>>> headers = ['key', 'project', 'leader', 'administrators']
8792
>>> html_row_with_ordered_headers(data, headers)
88-
'\\n\\t<tr><td>DEMO</td><td>Demonstration</td><td>[email protected]</td><td><ul><li><a href="mailto:[email protected]">[email protected]</a></li><li><a href="mailto:[email protected]">[email protected]</a></li></ul></td></tr>'
93+
'\\n\\t<tr><td>DEMO</td><td>Demonstration</td>
94+
<td>[email protected]</td><td>
95+
<ul>
96+
<li><a href="mailto:[email protected]">[email protected]</a></li>
97+
<li><a href="mailto:[email protected]">[email protected]</a></li>
98+
</ul></td></tr>'
8999
"""
90100
html = '\n\t<tr>'
91101

0 commit comments

Comments
 (0)