Skip to content

Docs: Jira source type undocumented in reference β€” only pollInterval field appearsΒ #777

@kelos-bot

Description

@kelos-bot

πŸ€– 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

  1. Required fields are absent β€” baseUrl, project, and secretRef are not documented at all.
  2. Secret format not explained β€” Jira Cloud uses JIRA_TOKEN + JIRA_USER (Basic auth); Jira Data Center/Server uses JIRA_TOKEN alone (Bearer auth). Neither is documented.
  3. No example kubectl create secret command for creating Jira credentials.
  4. promptTemplate variables 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.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions