From cb654607feaebaef41e5770517dc2693ad2ac88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Yag=C3=BCe?= <116084740+jyaguem@users.noreply.github.com> Date: Fri, 2 Feb 2024 08:44:11 +0100 Subject: [PATCH] [Jira] add update_component method (#1322) * [Jira] update_component method --- atlassian/jira.py | 5 +++++ docs/jira.rst | 3 +++ 2 files changed, 8 insertions(+) diff --git a/atlassian/jira.py b/atlassian/jira.py index 6a1250779..74acd1226 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -497,6 +497,11 @@ def create_component(self, component): url = "{base_url}/".format(base_url=base_url) return self.post(url, data=component) + def update_component(self, component, component_id): + base_url = self.resource_url("component") + url = "{base_url}/{component_id}".format(base_url=base_url, component_id=component_id) + return self.put(url, data=component) + def delete_component(self, component_id): log.warning('Deleting component "%s"', component_id) base_url = self.resource_url("component") diff --git a/docs/jira.rst b/docs/jira.rst index c5fb7bc66..5e8e3be05 100644 --- a/docs/jira.rst +++ b/docs/jira.rst @@ -500,6 +500,9 @@ Manage components # Create component jira.create_component(component) + # Update component + jira.update_component(component, component_id) + # Delete component jira.delete_component(component_id)