Jira and GitHub
A flow can start when a Jira issue or a GitHub issue or pull request changes, and can then create, update, comment on, label and read them. These are plain steps: no AI runs unless you add an agent.
You add Jira and GitHub from Connectors, under MCP servers, the same place where agents get their Jira and GitHub tools. One connection serves both flows and agents. See Agent tools and MCP for the agent side.
Jira and GitHub connections need your installation to have MCP switched on, and they can be added in workspaces in the eu region. Where they are not offered, the console shows them disabled and says why.
Connect Jira
You need an Atlassian account and a Jira site such as https://acme.atlassian.net. Create the token first.
- Go to id.atlassian.com, open Security, then API tokens, and choose Create API token with scopes.
- Choose the app Jira and give exactly these scopes:
| Jira step or trigger | Scope |
|---|---|
| A Jira issue changes, Get a Jira issue, Search Jira issues, and any read before a change | read:jira-work |
| Create a Jira issue, Update a Jira issue, Move a Jira issue, Comment on a Jira issue, Link Jira issues | write:jira-work |
| An assignee given by email or name instead of an account id | read:jira-user |
If a token lacks a scope, the step fails and names the scope to add.
- Console
- CLI
- YAML
- Open Connectors, click Add connection and choose Jira.
- Give it a Name, such as
Team Jira. - Under Atlassian email, enter the address of the account the token belongs to. Under Jira site, enter your Jira address.
- Paste the whole token under API token.
- Click Test connection, then Add Jira. The test says which way Atlassian accepted the token and names the scope it lacks, if any. A scope that changes something (
write:jira-work) cannot be checked without changing something, so a missing one shows on the first step that writes.
lumen connect jira team-jira \
--set email=dana@acme.example \
--set site=https://acme.atlassian.net \
--secret-env apiToken=JIRA_API_TOKEN
The server address and sign-in mode are fixed by the connection type, so the terminal does not ask for them.
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: team-jira
namespace: tenant-acme
spec:
classRef: {name: jira}
config:
url: https://mcp.atlassian.com/v2/mcp
auth: basic
email: dana@acme.example
site: https://acme.atlassian.net
credentials:
secretRef: {name: lumen-conn-team-jira}
The token is the key apiToken of the Secret lumen-conn-team-jira. Write it through the console or lumen connect, never in the resource.
The same connection can serve Atlassian's MCP server to agents, which wants its own token and scopes. Keep one Jira connection with the flow token above for flows and another for agents, so each token holds only what its user needs. The test of a flow connection may say agents cannot use its MCP tools. That is expected.
Connect GitHub
GitHub takes a fine-grained personal access token, or signs in as a GitHub App.
| GitHub step or trigger | Token permission |
|---|---|
| GitHub activity, Get a GitHub issue or pull request | Issues: Read, Pull requests: Read |
| List GitHub pull requests | Pull requests: Read |
| Comment on GitHub, Label on GitHub | Issues: Read and write (Pull requests: Read and write for a pull request) |
| Open a GitHub issue | Issues: Read and write |
Limit the token to the repositories your flows should see. When it lacks a permission the step fails and names the one to add.
- Console
- CLI
- YAML
- Open Connectors, click Add connection and choose GitHub.
- Give it a Name, such as
Team GitHub. - Under Sign in with, choose A personal access token and paste it under Token, or choose A GitHub App (below).
- Click Test connection, then Add GitHub.
Sign in as a GitHub App when comments, issues and pull requests should appear as the app's bot (<app>[bot]) instead of a person, and the connection should reach only the repositories the app is installed on. In GitHub, create the app with the permissions the flows need and no webhook, generate a private key (a .pem file), and install the app on your repositories with Only select repositories. Then choose A GitHub App and give:
| Field | What to enter |
|---|---|
| App ID | The number under About on the app's page. Not the client id. |
| Installation ID | The number at the end of the installation's settings address. Leave empty and Lumen finds the installation on the owner of the repositories you list. |
| Repositories | Optional, as owner/name. Limits each token Lumen makes to these. |
| Permissions | Optional, such as contents:write. Limits each token to these. |
| Private key | Choose the .pem file or paste it whole. |
Lumen signs a short-lived token with the key, exchanges it for an hour-long installation token narrowed to the repositories and permissions above, and renews it before it expires. The connection's card says who it signs in as and where the app is installed. If the installation misses a repository or a permission, the test fails and names it.
lumen connect github team-github --secret-env token=GITHUB_TOKEN
lumen connect github team-github-app \
--set signIn=app --set appId=123456 --set repositories=acme/website \
--secret-file privateKey=./app.private-key.pem
The first line asks for a fine-grained token. The second signs in as an app and reads the key from the file you name, without showing it.
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: team-github
namespace: tenant-acme
spec:
classRef: {name: github}
config:
url: https://api.githubcopilot.com/mcp/readonly
auth: bearer
signIn: token
credentials:
secretRef: {name: lumen-conn-team-github}
The token is the key token of the Secret lumen-conn-team-github. With signIn: app, add appId, optionally installationId, repositories and permissions, and put the key in privateKey instead. Write secrets through the console or lumen connect.
Start a flow
Both triggers are checked by Lumen every few minutes (5 by default, 1 to 60 in Check every (minutes)). An admin can click Check Jira now or Check GitHub now to check at once.
- Switching a trigger on starts from that moment. To run the flow on what is already there, set Import existing issues (newest) or Import existing open items (newest), up to 50, once.
- Each change starts one run, never two, even when Lumen checks again or restarts. Several changes to one issue between two checks start one run with the issue as it is now.
- The text is outside data. Issue titles, descriptions and comments are marked untrusted: an AI agent later in the flow reads them as information, never as instructions.
A Jira issue changes
| Setting | What it does |
|---|---|
Projects (projects) | Required. Project keys, such as OPS. Up to 20. |
Start on (events) | Created (created), Moved to another status (transitioned) or Any other change (updated). Empty is all three. |
Only these issue types (issueTypes) | Keep only issues of these types. |
Only issues now in these statuses (statuses) | Keep only issues that are in one of these statuses now. |
Only issues with one of these labels (labels) | Keep only issues that carry one of them. |
More conditions (JQL) (jql) | A Jira query, added with AND. |
Start only when (when) | A condition on the trigger's own fields, as for any trigger. |
The flow gets event, key, summary, status, previousStatus (for a move), assignee and assigneeId, reporter, labels, project, issueType, priority, url, description, changedFields, createdAt, updatedAt and jiraConnection.
GitHub activity
| Setting | What it does |
|---|---|
Repositories (repos) | Required. owner/name, such as acme/website. Up to 20. |
Start on (events) | Opened, Labelled, Closed, Merged, Review requested and Ready for review. Empty is opened, labelled, closed and merged: the last two start a flow only when you pick them. |
Only (kinds) | Issues, Pull requests, or both when empty. |
Only with one of these labels (labels) | Keep only items with one of them. For a labelled event, the label that was added. |
Start only when (when) | A condition on the trigger's own fields. |
Ready for review is a draft pull request marked ready. A pull request opened ready starts the flow as Opened, never as ready for review. Each move out of draft starts one run, so marked ready, back to draft and ready again is two runs.
The flow gets event, repo, number, kind (issue or pull_request), title, body, state, labels and label, author, actor, reviewer, url, merged, draft, createdAt, updatedAt and githubConnection.
Act on Jira and GitHub
Each step uses the connection you pick under its Jira connection or GitHub connection setting (connectorRef). Left empty, it uses the one the flow's trigger watches, or the workspace's only one. An item the trigger started from is the default Issue (Jira) or Repository and Issue or pull request number (GitHub), so a step after the trigger needs no setting for it.
Jira
| Step | Does |
|---|---|
| Create a Jira issue | Creates an issue from project, issueType, summary, description, labels, assignee, priority and an optional parent (an epic, or the issue a subtask sits under). Gives key, issueId and url. |
| Update a Jira issue | Changes the summary, description, labels (add or remove), assignee (or removes it) or priority. |
| Move a Jira issue | Moves the issue to a status by the name people see, such as Done. An issue already there is left as it is. |
| Comment on a Jira issue | Adds a comment. A step run again does not comment twice. |
| Link Jira issues | Links two issues by link type. It makes only the allowed types (Relates, Duplicate, Blocks and Clones unless you set Allowed link types), and a link already there, either way round, is left alone. |
| Get a Jira issue | Reads the issue's fields for later steps. |
| Search Jira issues | Runs a JQL search and returns up to 100 issues (max, default 20). |
Descriptions and comments take plain text with bold, lists, headings and links.
GitHub
| Step | Does |
|---|---|
| Comment on GitHub | Comments on an issue or pull request. A step run again does not comment twice. |
| Label on GitHub | Adds or removes labels. |
| Open a GitHub issue | Opens an issue with a title, description, labels and assignees. |
| Get a GitHub issue or pull request | Reads its fields. |
| List GitHub pull requests | Lists a repository's pull requests (state, max up to 100). |
There is no step that merges or pushes.
If Jira or GitHub limits how fast Lumen may ask, Lumen waits and tries again. A change that may or may not have gone through (the service did not answer clearly) is not repeated, and the step tells you to check first.
Examples
The first flow turns a supplier email into a Jira issue. The second starts from a webhook that a deploy script calls with a pull request number, and labels and comments on that pull request.
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: jira-supplier-requests
namespace: tenant-acme
spec:
displayName: Open a Jira issue for each supplier request
triggers:
- id: email
ref: {name: email-arrives}
connectorRef: {name: invoices-inbox}
config: {attachments: together, requireAttachment: false}
next: [ticket]
nodes:
- id: ticket
stepRef: {name: jira-create-issue}
config:
connectorRef: team-jira
project: OPS
issueType: Task
summary: "Supplier request: {email.subject}"
description: "From {email.from}. {email.body}"
labels: [supplier]
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: github-deploy-label
namespace: tenant-acme
spec:
displayName: Label and comment on a deployed pull request
triggers:
- id: deploy
ref: {name: webhook-received}
connectorRef: {name: deploy-hook}
config:
mapping:
- {name: repo, type: string, jsonPath: $.repo}
- {name: pull, type: string, jsonPath: $.pull}
next: [label]
nodes:
- id: label
stepRef: {name: github-labels}
config:
connectorRef: team-github
repo: "{deploy.repo}"
number: "{deploy.pull}"
add: [deployed]
next: [note]
- id: note
stepRef: {name: github-comment}
config:
connectorRef: team-github
repo: "{deploy.repo}"
number: "{deploy.pull}"
body: "Deployed to production."
The second flow uses this webhook connection, which a deploy script calls. HTTP and webhooks explains how it works. When a step names no repository or number, it uses the item that started the flow.
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: deploy-hook
namespace: tenant-acme
spec:
classRef: {name: webhook}
config: {signature: none}
The triggers of this page are written like any other. Put these in a flow's triggers list, and read their fields as {pr.title} or {issue.key} after the trigger's id:
triggers:
- id: issue
ref: {name: jira-issue-changed}
connectorRef: {name: team-jira}
config:
projects: [OPS]
events: [transitioned]
statuses: [Done]
next: [first-step]
- id: pr
ref: {name: github-activity}
connectorRef: {name: team-github}
config:
repos: [acme/website]
events: [opened, review_requested]
kinds: [pull_request]
pollMinutes: 5
next: [first-step]



