Skip to navigation

A Jira project handle. Exposes the standard issue API (workitem / workitems / work_type). For JSM portal operations (creating customer requests with proper request-type routing), use connection.service_desk(sd_id) instead.

Members

key

jira.Space.keystring

The project key.

connection

jira.Space.connection()

Get the Jira connection backing this scope.

Returns
connectionjira.ConnectionA Jira connection handle.

info

jira.Space.info()

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

Returns
infojira.SpaceInfoA SpaceInfo with the project’s descriptive metadata.

work_type

jira.Space.work_type(name_or_id)

Build a (project, issue type) scope. Accepts an issue type id (int) or name (string). No I/O at construction; Resolve fires lazily on first leaf-method call.

Parameters
name_or_idanyIssue type id (int) or name (string).
Returns
work_typejira.WorkTypeScopeA WorkTypeScope for the given issue type.

workitem

jira.Space.workitem(query, create?)

Find (or create) a work item in this project. JQL queries are auto-scoped with project = K; bare keys/ids pass through. Create goes through the standard issue API.

Parameters
querystringA work item key/id or JQL expression matching a single work item in this project.
create?optionallist[messaging.Revision]Revisions to use when creating the work item if the query finds none. The project field is added automatically.
Returns
workitemjira.WorkItemA work item.

workitems

jira.Space.workitems(jql)

Search work items in this project. JQL is auto-scoped with project = K.

Parameters
jqlstringA JQL query to find work items in this project.
Returns
workitemslist[jira.WorkItem]A list of work items matching the query within this project.