From dab67949f28098e23c67dc4cb0f40310aa32ba3a Mon Sep 17 00:00:00 2001 From: "Matthew M. Dahm" Date: Fri, 11 Aug 2023 14:27:01 -0500 Subject: [PATCH] Add ability to change Suspect from True to False --- py_jama_rest_client/client.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/py_jama_rest_client/client.py b/py_jama_rest_client/client.py index 4c0a953..0384402 100644 --- a/py_jama_rest_client/client.py +++ b/py_jama_rest_client/client.py @@ -966,6 +966,26 @@ def delete_relationships(self, relationship_id): JamaClient.__handle_response_status(response) return response.status_code + def delete_suspect(self, relationship_id): + """ + Deletes a suspect link from a relationship ID + + Args: + relationship_id: the api project id of a relationship + + Returns: The success status code. + + """ + resource_path = 'relationships/' + str(relationship_id) + '/suspect' + try: + response = self.__core.delete(resource_path) + except CoreException as err: + py_jama_rest_client_logger.error(err) + raise APIException(str(err)) + JamaClient.__handle_response_status(response) + return response.status_code + + def patch_item(self, item_id, patches): """ This method will patch an item.