Expand description
ai6-source-jira: the jira provider. As a Source it runs a JQL search for the issues
that carry the configured labels; as a Tracker it reads, comments on, labels, transitions
and creates issues of one project. Requests are blocking; the host calls them off its
async runtime.
§ai6-source-jira
The jira Source provider for AI6: Jira issues that
carry a label become Missions, and the outcome comes back as a comment and, if
configured, a workflow transition. See the
API header.
§Features
- Runs a JQL search per Operation: a project, labels and an optional extra condition, resuming from a cursor so only changed issues are fetched.
- Speaks Jira Cloud (REST v3, rich-text descriptions flattened to plain text) and Jira Server or Data Center (REST v2).
- Reads its credentials from environment variables the Operation names; they are never configured or logged.
- Reports a refused credential or an unseen project as an error, although Jira Cloud answers that search with an empty page and status 200.
- As a Tracker, reads, comments on (Markdown becomes rich text), labels, assigns, transitions, creates and links issues, and lists the replies that may answer a question.
- Builds as both a Rust library and the Guatiao provider library a Station loads.
§Installation
Part of the AI6 workspace; built with it:
cargo build -p ai6 --features cli -p ai6-source-jira§Quick start
In operations.toml:
[operation.G.sources.jira]
site = "https://example.atlassian.net"
project = "GUA"
email_env = "JIRA_EMAIL"
token_env = "JIRA_API_TOKEN"
status_transitions = { done = "In Review" }Then start a Station that holds the Headquarters lease with the library on its plugin path:
JIRA_EMAIL=... JIRA_API_TOKEN=... cargo run -p ai6 --features cli -- serve --plugin-path target/debug§Development
cargo test -p ai6-source-jira
cargo clippy -p ai6-source-jira --all-targets -- -D warningsTests run against a loopback HTTP server that answers with responses recorded from a Jira
Cloud site and scrubbed; they never call Jira. The Server and Data Center response is written
from the documented API, not recorded. tests/live.rs is the exception: it runs the provider
against a real Cloud project, is ignored by default, and says at its top what it needs.
§License
MPL-2.0. See LICENSE.
Structs§
- Jira
- Jira issues as an AI6 Source and Tracker.
- Settings
- One instance’s settings, from
[operation.<id>.sources.<name>].
Constants§
- PROVIDER_
ID - The provider ID an Operation names under
sources.
Statics§
- guatiao_
declares - What this library declares, read by a scanner as data.
Functions§
- guatiao_
library_ ⚠entry - The symbol a
guatiaohost loads this library by.