Jira Client API¶
The Jira plugin adds Jira operations to Titan through a high-level client and reusable workflows. It covers issue lookup, JQL search, comments, transitions, issue creation, metadata discovery, links, and AI-assisted issue workflows.
This page documents the plugin from a functional point of view, while also showing how each capability is called and which parameters it needs.
Requirements¶
To use the Jira plugin in a project:
- Enable the
jiraplugin in.titan/config.toml - Configure Jira connection settings such as
base_urlandemail - Store the Jira API token in Titan secrets
- Optionally configure a
default_projectso project-specific operations can work without passing a project key every time
Example project configuration:
[plugins.jira]
enabled = true
[plugins.jira.config]
base_url = "https://your-company.atlassian.net"
email = "developer@example.com"
default_project = "APP"
The API token is stored in secrets, not in the config file.
Accessing the client¶
In Titan code, the public entry point is the Jira plugin client:
The client returns ClientResult[...] values. In practice, this means each call can succeed with data or return an error result.
Issue operations¶
Get an issue¶
Returns a single Jira issue by key.
Call:
Parameters:
key: Required. Issue key.expand: Optional. Extra Jira expansions to request.
Search issues with JQL¶
Searches for issues using a JQL query.
Call:
client.search_issues(
jql='project = APP AND status = "To Do"',
max_results=20,
fields=["summary", "status", "assignee"],
)
Parameters:
jql: Required. JQL query string.max_results: Optional. Maximum number of issues to return.fields: Optional. Fields to request from Jira. When omitted,DEFAULT_SEARCH_FIELDSfromtitan_plugin_jira.constants(summary, status, assignee, priority, created, updated); add"description"to getUIJiraIssue.descriptionfilled.
Get an issue's web URL¶
Parameters:
issue_key: Required. The issue key. No network call: it is built from the configured base URL.
Create an issue¶
Creates a new Jira issue.
Call:
client.create_issue(
issue_type="Task",
summary="Add server-side pagination",
description="The results endpoint should support pagination.",
project="APP",
assignee="developer@example.com",
labels=["backend", "api"],
priority="High",
fields={"components": [{"name": "Search"}]},
)
Parameters:
issue_type: Required. Issue type name such asBug,Story, orTask.summary: Required. Issue summary.description: Optional. Issue description.project: Optional. Project key. Uses the configured default project when omitted.assignee: Optional. Assignee username or email.labels: Optional. Labels to apply.priority: Optional. Priority name.fields: Optional. Additional Jira fields to merge into the payload.
Create a subtask¶
Creates a subtask under an existing parent issue.
Call:
client.create_subtask(
parent_key="APP-123",
summary="Add API tests",
description="Cover pagination and empty-state cases.",
)
Parameters:
parent_key: Required. Parent issue key.summary: Required. Subtask summary.description: Optional. Subtask description.
This operation requires a configured default project.
Project operations¶
Get a project¶
Returns a Jira project by key.
Call:
Parameters:
key: Optional. Project key. Uses the configured default project when omitted.
List projects¶
Returns all Jira projects accessible to the current user.
Call:
Parameters:
- No parameters.
Comment operations¶
Get issue comments¶
Returns the comments for a Jira issue.
Call:
Parameters:
issue_key: Required. Issue key.
Add a comment¶
Adds a comment to a Jira issue.
Call:
Parameters:
issue_key: Required. Issue key.body: Required. Comment text.
Transition operations¶
Get available transitions¶
Returns the transitions available for a Jira issue. Each UIJiraTransition carries required_fields: the fields its screen requires and has no default for (a UIJiraTransitionField with key, name and, when Jira lists the allowed values, options of id and label). Closing transitions usually require resolution.
Call:
Parameters:
issue_key: Required. Issue key.
Transition an issue¶
Moves an issue to another Jira status.
Call:
client.transition_issue(
issue_key="APP-123",
new_status="Closed",
comment="Shipped.",
resolution="Done",
)
Parameters:
issue_key: Required. Issue key.new_status: Required. Target status name.comment: Optional. Comment to add while transitioning.fields: Optional. Jira fields payload to send with the transition.update: Optional. Jira update payload merged into the transition.resolution: Optional. Resolution name (e.g."Done") sent as theresolutionfield, for transitions that require one.
A field required by the transition's screen and not sent (in fields, update or resolution) does not stop the call, since Jira may already hold a value on the issue: the transition is still sent, and if Jira rejects it the result is a ClientError with code TRANSITION_FIELDS_REQUIRED naming the missing fields (other rejections are TRANSITION_ERROR). Read get_transitions first to know them and their allowed values.
Metadata operations¶
Get issue types¶
Returns the issue types available for a project.
Call:
Parameters:
project_key: Optional. Project key. Uses the configured default project when omitted.
List project statuses¶
Returns the statuses available for a project.
Call:
Parameters:
project_key: Optional. Project key. Uses the configured default project when omitted.
Get the current Jira user¶
Returns information about the authenticated Jira user.
Call:
Parameters:
- No parameters.
List project versions¶
Returns the versions configured for a project.
Call:
Parameters:
project_key: Optional. Project key. Uses the configured default project when omitted.
List project components¶
Returns the project's components (UIJiraComponent: id, name, description).
components_condition(names) from titan_plugin_jira.operations turns some of them into
a JQL condition (component in (...)).
Call:
Parameters:
project_key: Optional. Project key. Uses the configured default project when omitted.
List favourite filters¶
Returns the saved filters the authenticated user starred in Jira (UIJiraFilter: id,
name, jql, url). Filters shared without their query are left out. A filter's jql
can be passed as one of the conditions of
build_issue_jql(status=None, project=None, conditions=()) from titan_plugin_jira.operations,
which ANDs everything it is given (no status: any status); pass it through
strip_order_by(jql) first, as a saved filter's query may end in an ORDER BY.
Call:
Parameters: none.
Create a version¶
Creates a Jira version in a project.
Call:
client.create_version(
name="25.45",
project_key="APP",
description="Weekly mobile release",
release_date="2026-04-30",
start_date="2026-04-24",
)
Parameters:
name: Required. Version name.project_key: Optional. Project key. Uses the configured default project when omitted.description: Optional. Version description.release_date: Optional. Jira release date inYYYY-MM-DDformat.start_date: Optional. Jira start date inYYYY-MM-DDformat. Declared afterrelease_dateto keep existing positional calls working; pass it by keyword.
Ensure a version exists¶
Returns an existing version by name or creates it if missing.
Call:
client.ensure_version_exists(
name="25.45",
project_key="APP",
description="Weekly mobile release",
)
Parameters:
name: Required. Version name.project_key: Optional. Project key. Uses the configured default project when omitted.description: Optional. Description to use if the version must be created.release_date: Optional. Release date to use if the version must be created.start_date: Optional. Start date to use if the version must be created. Pass it by keyword.
Assign a fixVersion¶
Assigns a Jira fixVersion to an issue, by version ID or version name.
Call:
Parameters:
issue_key: Required. Issue key.version_id: Optional. Jira version ID.version_name: Optional. Version name. Required whenversion_idis not provided.project_key: Optional. Project key used to resolveversion_name. Uses the configured default project when omitted.
Set the fixVersion¶
Replaces the issue's fixVersions with one version (assign_fix_version adds to them). None clears the field.
Call:
Parameters:
issue_key: Required. Issue key.version_id: Required. Jira version ID, orNoneto clear the field. List a project's versions withlist_project_versions.
Assign an issue to a user¶
Assigns an existing issue to a user by account ID.
Call:
Parameters:
issue_key: Required. Issue key.account_id: Required. Jira account ID of the user to assign (e.g. fromclient.get_current_user()).
Get priorities¶
Returns the priorities available in Jira.
Call:
Parameters:
- No parameters.
Link operations¶
Link two issues¶
Creates a Jira link between two issues.
Call:
Parameters:
inward_issue: Required. Source issue key.outward_issue: Required. Target issue key.link_type: Optional. Jira link type.
Add a remote link¶
Adds an external link, such as a pull request or document, to a Jira issue.
Call:
client.add_remote_link(
issue_key="APP-123",
url="https://example.com/pull/123",
title="Pull Request 123",
relationship="relates to",
)
Parameters:
issue_key: Required. Issue key.url: Required. External URL to link.title: Required. Link title.relationship: Optional. Relationship description.
Related workflows¶
The Jira plugin ships with workflows that use these capabilities directly:
analyze-jira-issues: Searches open issues, lets the user select one, and analyzes it with AIcreate-generic-issue: Guides the user through issue creation, enhances the content with AI, and creates the Jira issue
These workflows can be used as-is or extended from .titan/workflows/.