Skip to content

Insight for jira module #973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions atlassian/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from .portfolio import Portfolio
from .service_desk import ServiceDesk
from .xray import Xray
from .insight import Insight


__all__ = [
"Confluence",
Expand Down
7 changes: 6 additions & 1 deletion atlassian/insight.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


class Insight(AtlassianRestAPI):

"""Insight for Jira API wrapper."""

# https://insight-javadoc.riada.io/insight-javadoc-8.6/insight-rest/
Expand Down Expand Up @@ -155,6 +156,7 @@ def add_comment_to_object(self, comment, object_id, role):
def get_comment_of_object(self, object_id):
"""
The object id to fetch comments from

:param object_id:
:return:
"""
Expand Down Expand Up @@ -184,6 +186,7 @@ def get_icon_by_id(self, icon_id):
def get_all_global_icons(self):
"""
All existing global icons

:return:
"""
url = self.url_joiner(self.api_root, "icon/global")
Expand All @@ -206,6 +209,7 @@ def start_import_configuration(self, import_id):
def reindex_insight(self):
"""
Should the reindex clean the index before doing the reindex

:return:
"""
if self.cloud:
Expand All @@ -216,6 +220,7 @@ def reindex_insight(self):
def reindex_current_node_insight(self):
"""
Should the reindex clean the index before doing the reindex

:return:
"""
if self.cloud:
Expand Down Expand Up @@ -332,7 +337,7 @@ def get_object_history(self, object_id, asc=False, abbreviate=True):
params = {"asc": asc, "abbreviate": abbreviate}
url = self.url_joiner(self.api_root, "object/{id}/history".format(id=object_id))
return self.get(url, params=params)

@deprecated(version="3.29.0", reason="Use get_object_reference_info()")
def get_object_referenceinfo(self, object_id):
"""Let's use the get_object_reference_info()"""
Expand Down