Skip to navigation

jira.ServiceManagementLegacyConnection

View as MarkdownOpen in Claude

DEPRECATED: jirasm-compatible connection. Use jira.Connection for new code.

Members

name

jira.ServiceManagementLegacyConnection.namestring

The connection name.

create_request

jira.ServiceManagementLegacyConnection.create_request(summary, fields?)

Create a new work item (jirasm-compatible).

Parameters
summarystringThe summary/title of the work item.
fields?optionaldict[string:any]Dict of field name/value pairs.
Returns
requestjira.LegacyRequestThe created work item.

get_request

jira.ServiceManagementLegacyConnection.get_request(issue_key)

Get a work item by key or ID (jirasm-compatible).

Parameters
issue_keystringThe work item key or ID.
Returns
requestjira.LegacyRequestThe work item.

query_requests

jira.ServiceManagementLegacyConnection.query_requests(query)

Query work items using JQL (jirasm-compatible).

Parameters
querystringThe JQL query string.
Returns
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).

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

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