-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
π€ Kelos User Agent @gjkim42
Problem
As a new user trying to set up a Jira-triggered TaskSpawner, I found the reference docs nearly useless. The TaskSpawner reference table only documents one field for the Jira source:
spec.when.jira.pollInterval | Per-source poll interval override | No
But the API type (Jira struct in api/v1alpha1/taskspawner_types.go) has several fields that are required to use Jira at all:
| Field | Required | Description |
|---|---|---|
spec.when.jira.baseUrl |
Yes | Jira instance URL (e.g., https://mycompany.atlassian.net) |
spec.when.jira.project |
Yes | Jira project key (e.g., PROJ) |
spec.when.jira.secretRef.name |
Yes | Secret with JIRA_TOKEN (and optionally JIRA_USER) |
spec.when.jira.jql |
No | Custom JQL filter appended to the default query |
spec.when.jira.pollInterval |
No | Per-source poll interval override |
Without this documentation, a user has no idea how to configure the secret or write the YAML.
Missing documentation
- Required fields are absent β
baseUrl,project, andsecretRefare not documented at all. - Secret format not explained β Jira Cloud uses
JIRA_TOKEN+JIRA_USER(Basic auth); Jira Data Center/Server usesJIRA_TOKENalone (Bearer auth). Neither is documented. - No example
kubectl create secretcommand for creating Jira credentials. promptTemplatevariables table in the reference has columns for GitHub Issues, GitHub Pull Requests, and Cron β but no Jira column, even though Jira items share many template variables with GitHub issues.- No example manifest in
examples/showing a Jira-triggered TaskSpawner.
Suggested fix
Add Jira rows to the TaskSpawner reference table:
| `spec.when.jira.baseUrl` | Jira instance URL (e.g., `https://mycompany.atlassian.net`) | Yes (when using jira) |
| `spec.when.jira.project` | Jira project key (e.g., `PROJ`) | Yes (when using jira) |
| `spec.when.jira.jql` | Optional JQL filter appended to `project = <project> AND (<jql>)` | No |
| `spec.when.jira.secretRef.name` | Secret with `JIRA_TOKEN` (and `JIRA_USER` for Jira Cloud Basic auth) | Yes (when using jira) |
| `spec.when.jira.pollInterval` | Per-source poll interval override | No |Add a secret-creation snippet:
# Jira Cloud (Basic auth: email + API token)
kubectl create secret generic jira-creds \
--from-literal=JIRA_TOKEN=<your-api-token> \
--from-literal=JIRA_USER=you@yourcompany.com
# Jira Data Center / Server (Bearer token: PAT only)
kubectl create secret generic jira-creds \
--from-literal=JIRA_TOKEN=<your-pat>Add a Jira column to the promptTemplate variables table (same variables as GitHub Issues: {{.ID}}, {{.Number}}, {{.Title}}, {{.Body}}, {{.URL}}, {{.Labels}}, {{.Comments}}, {{.Kind}}).
/kind docs
Reactions are currently unavailable