jira.RequestTypeScope
A (service desk, request type) scope built from service_desk.request_type(name_or_id). Pure-data at construction; resolves via API on first leaf method call.
Members
project_key
jira.RequestTypeScope.project_keystringThe project key this scope is bound to.
service_desk_id
jira.RequestTypeScope.service_desk_idstringThe service desk id this scope is bound to.
connection
jira.RequestTypeScope.connection()Get the Jira connection backing this scope.
connectionjira.ConnectionA Jira connection handle.info
jira.RequestTypeScope.info()Fetch this request type’s metadata (id, name, description). Resolves the scope if necessary.
infojira.RequestTypeInfoA RequestTypeInfo with the request type’s descriptive metadata.request
jira.RequestTypeScope.request(query, create?)Find (or create) a customer request of this type. JQL is auto-scoped with project = K AND “Request Type” = <name>. On create, the SM portal API is used so the request type is set correctly.
querystringA request key/id or JQL expression.create?optionallist[messaging.Revision]Field revisions to use when creating the request if the query finds none. The service desk and request type are added automatically.requestjira.WorkItemA work item representing the customer request.requests
jira.RequestTypeScope.requests(jql)Search customer requests of this type. JQL is auto-scoped with project = K AND “Request Type” = <name>.
jqlstringA JQL query.requestslist[jira.WorkItem]A list of work items.transition_graph
jira.RequestTypeScope.transition_graph()Map each status in the workflow for this project and issue type to the statuses reachable from it in one transition. Costly: do not call it on a workflow’s hot path. On Jira Cloud, it reads the workflow definition in one request when the connection has permission to view workflows. Otherwise, and always on Server and Data Center, it probes one work item per status, two requests per status, and the result only shows transitions the connection’s account is allowed to take.
graphdict[string:list[string]]A dict of status name to a sorted list of reachable status names. Workflow conditions can still refuse a listed transition on a given work item. An empty list means no transition leaves that status, or, when probed, that conditions hid every transition. A status missing from the dict had no work item to probe.