Skip to navigation

jira.ServiceDesk

View as MarkdownOpen in Claude

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.keystring

The project key.

service_desk_id

jira.ServiceDesk.service_desk_idstring

The service desk id.

connection

jira.ServiceDesk.connection()

Get the Jira connection backing this scope.

Returns
connectionjira.ConnectionA Jira connection handle.

info

jira.ServiceDesk.info()

Fetch service desk / project metadata (id, name, description, type, service_desk_id).

Returns
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.

Parameters
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.
Returns
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.

Parameters
name_or_idanyRequest type id (int) or name (string).
Returns
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.

Parameters
jqlstringA JQL query.
Returns
requestslist[jira.WorkItem]A list of work items.