Skip to main content

Link Jira issues

Stepjira-link-issuessaveside effects

Links two issues, such as one duplicating or blocking another. A link already there is left as it is.

At a glance​

PropertyValue
Step namejira-link-issues
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categorysave, jira
Credits0.5 credits each time it succeeds
Side effectsyes It changes something outside Lumen, so a retry asks first and a test shows what it would do instead of doing it.
Installation must providenothing

Inputs​

PropertyValue
Needsnothing
Producesfields
Works onitem one document at a time

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.

Outputs​

A later node references an output as {nodeId.field} in text, or nodeId.field in a condition.

OutputType
inwardstring
outwardstring
linkTypestring
linkedboolean
urlstring

Settings​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
connectorRefstring-Jira connectionminLength 1
inwardrequiredstring-An issue key such as PROJ-123, or a value from earlier in the flow. Jira's inward issue of the link.minLength 1; maxLength 200
outwardrequiredstring-An issue key such as PROJ-124, or a value from earlier in the flow. Jira's outward issue of the link.minLength 1; maxLength 200
linkTyperequiredstring-Such as Relates, Duplicate, Blocks or Clones: one of the allowed link types.minLength 1; maxLength 100
allowedTypeslist of string-The link types this step may make. Empty allows Relates, Duplicate, Blocks and Clones.maxItems 20

The full JSON Schema of these settings: jira-link-issues.schema.json.

Example​

Mark a duplicate ticket

config
inward: '{key}'
linkType: Duplicate
outward: OPS-12

Use it in a flow​

A node that runs jira-link-issues goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: jira-link-issues-example
namespace: tenant-acme
spec:
displayName: "Link Jira issues"
triggers:
- id: start
ref: {name: manual-run}
next: [jira-link-issues]
nodes:
- id: jira-link-issues
stepRef: {name: jira-link-issues}
config:
inward: '{key}'
linkType: Duplicate
outward: OPS-12