Skip to content

Commit

Permalink
Prepare a new release
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonchik Tsymzhitov authored and Gonchik Tsymzhitov committed Feb 12, 2020
1 parent 69368ef commit 5a69fd4
Show file tree
Hide file tree
Showing 11 changed files with 252 additions and 207 deletions.
2 changes: 1 addition & 1 deletion atlassian/VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.15.2
1.15.3

115 changes: 76 additions & 39 deletions atlassian/bitbucket.py

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# coding=utf-8
import logging
import re
from requests.exceptions import HTTPError
from .rest_client import AtlassianRestAPI

log = logging.getLogger(__name__)
Expand Down Expand Up @@ -2440,7 +2439,8 @@ def update_partially_sprint(self, sprint_id, data):
A sprint can be started by updating the state to 'active'.
This requires the sprint to be in the 'future' state and have a startDate and endDate set.
A sprint can be completed by updating the state to 'closed'.
This action requires the sprint to be in the 'active' state. This sets the completeDate to the time of the request.
This action requires the sprint to be in the 'active' state.
This sets the completeDate to the time of the request.
Other changes to state are not allowed.
The completeDate field cannot be updated manually.
:param sprint_id:
Expand Down Expand Up @@ -2509,10 +2509,10 @@ def get_audit_records(self, offset=None, limit=None, filter=None, from_date=None
it will be set do default value: 1000)
:param filter: string = text query; each record that will be returned
must contain the provided text in one of its fields
:param from: string - timestamp in past; 'from' must be less or equal 'to',
:param from_date: string - timestamp in past; 'from' must be less or equal 'to',
otherwise the result set will be empty only records that
where created in the same moment or after the 'from' timestamp will be provided in response
:param to: string - timestamp in past; 'from' must be less or equal 'to',
:param to_date: string - timestamp in past; 'from' must be less or equal 'to',
otherwise the result set will be empty only records that
where created in the same moment or earlier than the 'to'
timestamp will be provided in response
Expand All @@ -2539,4 +2539,4 @@ def post_audit_record(self, audit_record):
:return:
"""
url = "rest/api/2/auditing/record"
return self.post(url, data=audit_record)
return self.post(url, data=audit_record)
16 changes: 13 additions & 3 deletions atlassian/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,22 @@ def html_table_header_row(data):
def html_row_with_ordered_headers(data, headers):
"""
>>> headers = ['administrators', 'key', 'leader', 'project']
>>> data = {'key': 'DEMO', 'project': 'Demonstration', 'leader': '[email protected]', 'administrators': ['[email protected]', '[email protected]']}
>>> data = {'key': 'DEMO', 'project': 'Demonstration',
'leader': '[email protected]',
'administrators': ['[email protected]', '[email protected]']}
>>> html_row_with_ordered_headers(data, headers)
'\\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>'
'\\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>'
>>> headers = ['key', 'project', 'leader', 'administrators']
>>> html_row_with_ordered_headers(data, headers)
'\\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>'
'\\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>'
"""
html = '\n\t<tr>'

Expand Down
Loading

0 comments on commit 5a69fd4

Please sign in to comment.