Skip to content

Commit a32967a

Browse files
authored
[service_desk] Single request_type method addition
Added new method to fetch single request type.
1 parent c2a516a commit a32967a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

atlassian/service_desk.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,23 @@ def get_request_types(self, service_desk_id):
166166
f"rest/servicedeskapi/servicedesk/{service_desk_id}/requesttype",
167167
headers=self.experimental_headers,
168168
)
169+
def get_request_type(self, service_desk_id, request_type_id):
170+
"""
171+
Fetches detailed information about a specific request type within a service desk.
169172
173+
:param service_desk_id: The ID of the service desk where the request type
174+
exists.
175+
:type service_desk_id: str
176+
:param request_type_id: The ID of the request type to retrieve.
177+
:type request_type_id: str
178+
:return: A dictionary containing the details of the specified request type.
179+
:rtype: dict
180+
"""
181+
return self.get(
182+
f"rest/servicedeskapi/servicedesk/{service_desk_id}/requesttype/{request_type_id}",
183+
headers=self.experimental_headers,
184+
)
185+
170186
# Participants actions
171187
def get_request_participants(self, issue_id_or_key, start=0, limit=50):
172188
"""

0 commit comments

Comments
 (0)