Create a Jira issue
Paso
jira-create-issuesaveefectos externosCreates an issue in a Jira project, with its summary, description, labels, assignee and parent.
De un vistazo
| Propiedad | Valor |
|---|---|
| Nombre del paso | jira-create-issue |
| Recurso | ClusterStep (lumen.ai/v1alpha1) |
| Grupo de la paleta, categoría | save, jira |
| Créditos | 0.5 créditos cada vez que tiene éxito |
| Efectos externos | sí Cambia algo fuera de Lumen, así que un reintento pregunta antes y una prueba muestra lo que haría en lugar de hacerlo. |
| La instalación debe aportar | nada |
Entradas
| Propiedad | Valor |
|---|---|
| Necesita | nada |
| Produce | fields |
| Trabaja sobre | item un documento cada vez |
Necesita y Produce son tipos de datos (file, text, fields, email). El editor ofrece un paso solo donde lo que necesita ya está en el camino. Consulta Documentos y datos.
Salidas
Un nodo posterior se refiere a una salida como {nodeId.field} en un texto, o nodeId.field en una condición.
| Salida | Tipo |
|---|---|
key | string |
issueId | string |
url | string |
Ajustes
Se definen bajo config: en el nodo del flujo. Los ajustes de texto pueden contener marcadores de posición como {nodeId.field}.
| Ajuste | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
connectorRef | string | - | Jira connectionminLength 1 |
projectobligatorio | string | - | Such as PROJ, as it starts the project's issue keys.minLength 1; maxLength 200 |
issueType | string | "Task" | Issue typemaxLength 100 |
summaryobligatorio | string | - | SummaryminLength 1; maxLength 1000 |
description | string | - | Plain text; **bold**, lists, headings and links work.maxLength 32000 |
labels | list of string | - | LabelsmaxItems 20 |
assignee | string | - | An email or a Jira account id; empty leaves it unassigned.maxLength 200 |
priority | string | - | PrioritymaxLength 100 |
parent | string | - | An issue key such as PROJ-12: the epic the new issue belongs to, or the issue a subtask sits under. Empty creates it on its own.maxLength 200 |
El JSON Schema completo de estos ajustes: jira-create-issue.schema.json.
Ejemplo
config
description: |-
**Invoice:** {invoiceNumber}
Please check the amount.
issueType: Task
labels:
- supplier
project: OPS
summary: Complaint from {supplier}
Úsalo en un flujo
Un nodo que ejecuta jira-create-issue va bajo spec.nodes de un Flow. Dale cualquier id y enumera en next los ids de los nodos siguientes.
flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: jira-create-issue-example
namespace: tenant-acme
spec:
displayName: "Create a Jira issue"
triggers:
- id: start
ref: {name: manual-run}
next: [jira-create-issue]
nodes:
- id: jira-create-issue
stepRef: {name: jira-create-issue}
config:
description: |-
**Invoice:** {invoiceNumber}
Please check the amount.
issueType: Task
labels:
- supplier
project: OPS
summary: Complaint from {supplier}
¿Te ha resultado útil esta página?