jira.ServiceDesk
A JSM service desk handle. Exposes the SM portal API (request / requests / request_type). Returned by connection.service_desk(sd_id).
Members
key
jira.ServiceDesk.keystringThe project key.
service_desk_id
jira.ServiceDesk.service_desk_idstringThe service desk id.
connection
jira.ServiceDesk.connection()Get the Jira connection backing this scope.
connectionjira.ConnectionA Jira connection handle.info
jira.ServiceDesk.info()Fetch service desk / project metadata (id, name, description, type, service_desk_id).
infojira.SpaceInfoA SpaceInfo with the project’s descriptive metadata.request
jira.ServiceDesk.request(query, create?)Find (or create) a customer request in this service desk. The find path uses standard JQL; the create path routes through the SM portal API. Caller must supply the “Request Type” field in the create revisions, or use service_desk.request_type(rt).request(…) to bind the RT at the scope level.
querystringA request key/id or JQL expression.create?optionallist[messaging.Revision]Field revisions to use when creating the request if the query finds none. Caller must include a Request Type field for SM portal create to succeed.requestjira.WorkItemA work item representing the customer request.request_type
jira.ServiceDesk.request_type(name_or_id)Build a (service desk, request type) scope. Accepts a request type id (int) or name (string). No I/O at construction; Resolve fires lazily on first leaf-method call.
name_or_idanyRequest type id (int) or name (string).request_typejira.RequestTypeScopeA RequestTypeScope for the given request type.requests
jira.ServiceDesk.requests(jql)Search customer requests in this service desk. JQL is auto-scoped with project = K.
jqlstringA JQL query.requestslist[jira.WorkItem]A list of work items.