Skip to content

Commit 0d8d38c

Browse files
author
Gonchik Tsymzhitov
committed
Merge branch 'master' of https://github.com/atlassian-api/atlassian-python-api into master
2 parents 3b7ad5d + 1227129 commit 0d8d38c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

atlassian/service_desk.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,3 +728,30 @@ def upload_plugin(self, plugin_path):
728728
).headers["upm-token"]
729729
url = "rest/plugins/1.0/?token={upm_token}".format(upm_token=upm_token)
730730
return self.post(url, files=files, headers=self.no_check_headers)
731+
732+
def create_request_type(
733+
self,
734+
service_desk_id,
735+
request_type_id,
736+
request_name,
737+
request_description,
738+
request_help_text,
739+
):
740+
"""
741+
Creating a request type
742+
:param service_desk_id: str
743+
:param request_name: str
744+
:param request_description: str
745+
:param request_help_test: str
746+
"""
747+
log.warning("Creating request type...")
748+
data = {
749+
"issueTypeId": request_type_id,
750+
"name": request_name,
751+
"description": request_description,
752+
"helpText": request_help_text
753+
}
754+
755+
url = "rest/servicedeskapi/servicedesk/{}/requesttype".format(service_desk_id)
756+
757+
return self.post(url, headers=self.experimental_headers, data=data)

0 commit comments

Comments
 (0)