jira.ServiceManagementLegacyConnection
DEPRECATED: jirasm-compatible connection. Use jira.Connection for new code.
Members
name
jira.ServiceManagementLegacyConnection.namestringThe connection name.
create_request
jira.ServiceManagementLegacyConnection.create_request(summary, fields?)Create a new work item (jirasm-compatible).
summarystringThe summary/title of the work item.fields?optionaldict[string:any]Dict of field name/value pairs.requestjira.LegacyRequestThe created work item.get_request
jira.ServiceManagementLegacyConnection.get_request(issue_key)Get a work item by key or ID (jirasm-compatible).
issue_keystringThe work item key or ID.requestjira.LegacyRequestThe work item.query_requests
jira.ServiceManagementLegacyConnection.query_requests(query)Query work items using JQL (jirasm-compatible).
querystringThe JQL query string.requestslist[jira.LegacyRequest]List of matching work items.start_workflow_when
jira.ServiceManagementLegacyConnection.start_workflow_when(callback_name, workflow, query)Register callback for JQL matches (jirasm-compatible).
callback_namestringThe name of the callback to register.workflowworkflows.WorkflowThe workflow to launch when a work item matches the query.querystringThe JQL query to check.transition_graph
jira.ServiceManagementLegacyConnection.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.