diff --git a/atlassian/jira.py b/atlassian/jira.py index bcacb94a6..dccc985ae 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -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 diff --git a/docs/jira.rst b/docs/jira.rst index f438783f3..0435cd851 100644 --- a/docs/jira.rst +++ b/docs/jira.rst @@ -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 -------------------