Skip to navigation

jira.WorkItem

View as MarkdownOpen in Claude

A Jira work item.

Members

browse_url

jira.WorkItem.browse_urlstring

The human-facing browse URL of the work item.

id

jira.WorkItem.idstring

The work item id.

key

jira.WorkItem.keystring

The work item key.

url

jira.WorkItem.urlstring

The REST URL of the work item.

case_jql

jira.WorkItem.case_jql(jql)

Create an event source that fires when the work item matches the given JQL. Use with patterns.select() to wait for Jira transitions.

Parameters
jqlstringA JQL condition that the work item must match, e.g. “status = ‘READY_FOR_REVIEW’”, “status = ‘TRIAGE’”, or any valid JQL that applies to a single issue.
Returns
event_sourcejira.WorkItemCaseJQLEventSourceAn event source suitable for use as a key in patterns.select() cases.

connection

jira.WorkItem.connection()

Get the connection used to access this work item.

Returns
connectionjira.ConnectionThe connection for this work item.

read

jira.WorkItem.read(fields?, properties?, private_comments?, public_roles?, since?, fail_fast?)

Get the changes to the work item.

Parameters
fields?optionallist[string]The list of fields to read, by ID or display name. When omitted, only status and summary are read. Pass [‘*all’] to read every field. Comments are read only when ‘comment’ is named. Precede names with ’-’ to exclude them; exclusions on their own apply to the default, so [‘-summary’] reads status only, and [‘*all’, ‘-comment’] reads everything but comments. [’-*all’] reads no fields, which is useful when only properties are needed.
properties?optionallist[string]The list of properties to get changes for. Use ‘*all’ to indicate all fields. Precede names with ’-’ to exclude them. By default, no properties are included.
private_comments?optionalboolTrue to include comments that are marked private (internal in Jira SM).
public_roles?optionallist[string]Overrides the public_roles set on the connection for this read. Role or group names that are allowed past the visibility filter. A comment whose visibility is restricted to one of these roles/groups is included as if it were public. Comments with no visibility restriction are public regardless of this setting; the legacy “All Users” sentinel is now a no-op.
since?optionaltimeThe time before which changes will be ignored.
fail_fast?optionalboolstop immediately instead of waiting to collect all errors.
Returns
revisionslist[messaging.Revision]The list of revisions representing the changes done to the work item.

read_comment_properties

jira.WorkItem.read_comment_properties(revs)

Read comment properties for the given revisions via a single bulk request scoped to this work item, and return revisions augmented with the properties. Pass-through for non-comment revisions, for comment revisions without jira.item_hint, and for comment revisions whose Self URL does not point at this work item.

Parameters
revslist[messaging.Revision]A list of revisions returned by wi.read on this work item.
Returns
revslist[messaging.Revision]A list of the same length and order as the input. Comment revisions enrichable on this work item carry a jira.comment_properties header when properties are present; everything else passes through unchanged.

space

jira.WorkItem.space()

Get this work item’s project as a Space handle. Returns immediately (just the project key); call .info() to fetch project metadata.

Returns
spacejira.SpaceA Space handle for this work item’s project.

work_type

jira.WorkItem.work_type()

Resolve this work item’s issue type into a WorkTypeScope.

Returns
work_typejira.WorkTypeScopeThe WorkTypeScope for this work item.

write

jira.WorkItem.write(revisions, fields?, properties?, private_comments?, public_roles?, fail_fast?)

update

Parameters
revisionslist[messaging.Revision]The list of revisions representing the changes done to the work item.
fields?optionallist[string]Filters which revisions are written, by field ID or display name. By default revisions for every field are written. Use ‘*all’ to indicate all fields. Precede names with ’-’ to exclude them. Only the fields the revisions touch are fetched from Jira, whatever this list contains.
properties?optionallist[string]The list of properties to get changes for. Use ‘*all’ to indicate all fields. Precede names with ’-’ to exclude them. By default, no properties are included.
private_comments?optionalboolTrue to include comments that are marked private (internal in Jira SM).
public_roles?optionallist[string]Overrides the public_roles set on the connection for this write. Role or group names that are allowed past the visibility filter. A comment whose visibility is restricted to one of these roles/groups is written; comments restricted to a role/group not on the list are silently skipped, mirroring the read-side filter. private_comments=True bypasses this entirely.
fail_fast?optionalboolstop immediately instead of waiting to collect all errors.