Skip to content

Added get_dashboard method #1109

New issue

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

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

Already on GitHub? # to your account

Merged
merged 5 commits into from
Jan 12, 2023
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
10 changes: 10 additions & 0 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,16 @@ def get_dashboards(self, filter="", start=0, limit=10):
url = self.resource_url("dashboard")
return self.get(url, params=params)

def get_dashboard(self, dashboard_id):
"""
Returns a single dashboard

:param dashboard_id: Dashboard ID Int
:return:
"""
url = self.resource_url("dashboard/{dashboard_id}".format(dashboard_id=dashboard_id))
return self.get(url)

"""
Filters. Resource for searches
Reference: https://docs.atlassian.com/software/jira/docs/api/REST/8.5.0/#api/2/filter
Expand Down
9 changes: 9 additions & 0 deletions docs/jira.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,15 @@ Manage Boards
# Add/Move Issues to sprint
jira.add_issues_to_sprint(sprint_id, issues_list)


Manage dashboards
-----------------

.. code-block:: python

# Get dashboard by ID
jira.get_dashboard(dashboard_id)

Attachments actions
-------------------

Expand Down