Skip to content

Commit ab59163

Browse files
gonchik0xW1sKyKyle burk
authored
Insight for jira module (#973)
* added simple wrapper * [Insight] Update to support Cloud (#954) * Add initial insight cloud capabilities * Update existing funcitons for cloud api Co-authored-by: Kyle burk <kyle.burk@archerirm.com> * [Insight] Adding More Methods (#965) * [Insight] Add Insight methods and update docs * update readme * resolve pep257 style checks * Fix linting issues Co-authored-by: 0xW1sKy <20827857+0xW1sKy@users.noreply.github.com> Co-authored-by: Kyle burk <kyle.burk@archerirm.com>
1 parent f5f0882 commit ab59163

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

atlassian/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from .portfolio import Portfolio
1111
from .service_desk import ServiceDesk
1212
from .xray import Xray
13+
from .insight import Insight
14+
1315

1416
__all__ = [
1517
"Confluence",

atlassian/insight.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
class Insight(AtlassianRestAPI):
11+
1112
"""Insight for Jira API wrapper."""
1213

1314
# https://insight-javadoc.riada.io/insight-javadoc-8.6/insight-rest/
@@ -155,6 +156,7 @@ def add_comment_to_object(self, comment, object_id, role):
155156
def get_comment_of_object(self, object_id):
156157
"""
157158
The object id to fetch comments from
159+
158160
:param object_id:
159161
:return:
160162
"""
@@ -184,6 +186,7 @@ def get_icon_by_id(self, icon_id):
184186
def get_all_global_icons(self):
185187
"""
186188
All existing global icons
189+
187190
:return:
188191
"""
189192
url = self.url_joiner(self.api_root, "icon/global")
@@ -206,6 +209,7 @@ def start_import_configuration(self, import_id):
206209
def reindex_insight(self):
207210
"""
208211
Should the reindex clean the index before doing the reindex
212+
209213
:return:
210214
"""
211215
if self.cloud:
@@ -216,6 +220,7 @@ def reindex_insight(self):
216220
def reindex_current_node_insight(self):
217221
"""
218222
Should the reindex clean the index before doing the reindex
223+
219224
:return:
220225
"""
221226
if self.cloud:
@@ -332,7 +337,7 @@ def get_object_history(self, object_id, asc=False, abbreviate=True):
332337
params = {"asc": asc, "abbreviate": abbreviate}
333338
url = self.url_joiner(self.api_root, "object/{id}/history".format(id=object_id))
334339
return self.get(url, params=params)
335-
340+
336341
@deprecated(version="3.29.0", reason="Use get_object_reference_info()")
337342
def get_object_referenceinfo(self, object_id):
338343
"""Let's use the get_object_reference_info()"""

0 commit comments

Comments
 (0)