Comment on a Jira issue
Schritt
jira-add-commentnotifyexterne WirkungAdds a comment to an issue. A step run again does not comment twice.
Auf einen Blick
| Eigenschaft | Wert |
|---|---|
| Schrittname | jira-add-comment |
| Ressource | ClusterStep (lumen.ai/v1alpha1) |
| Palettengruppe, Kategorie | notify, jira |
| Credits | 0.5 Credits bei jedem Erfolg |
| Externe Wirkung | ja Er ändert etwas außerhalb von Lumen, deshalb fragt ein Wiederholungsversuch vorher nach, und ein Test zeigt, was er tun würde, statt es zu tun. |
| Die Installation muss bereitstellen | nichts |
Eingaben
| Eigenschaft | Wert |
|---|---|
| Braucht | nichts |
| Liefert | fields |
| Arbeitet auf | item einem Dokument nach dem anderen |
Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe Dokumente und Daten.
Ausgaben
Ein späterer Knoten verweist auf eine Ausgabe als {nodeId.field} in einem Text oder als nodeId.field in einer Bedingung.
| Ausgabe | Typ |
|---|---|
key | string |
commentId | string |
commentUrl | string |
Einstellungen
Wird unter config: im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie {nodeId.field} enthalten.
| Einstellung | Typ | Standardwert | Beschreibung |
|---|---|---|---|
connectorRef | string | - | Jira connectionminLength 1 |
issue | string | - | An issue key such as PROJ-123, or a value from earlier in the flow. Empty is the issue the flow started from.maxLength 200 |
bodyerforderlich | string | - | Plain text; **bold**, lists and links work.minLength 1; maxLength 32000 |
Das vollständige JSON Schema dieser Einstellungen: jira-add-comment.schema.json.
Beispiel
config
body: Paid {amount} on {paidAt}.
Im Flow verwenden
Ein Knoten, der jira-add-comment ausführt, steht unter spec.nodes eines Flow. Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.
flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: jira-add-comment-example
namespace: tenant-acme
spec:
displayName: "Comment on a Jira issue"
triggers:
- id: start
ref: {name: manual-run}
next: [jira-add-comment]
nodes:
- id: jira-add-comment
stepRef: {name: jira-add-comment}
config:
body: Paid {amount} on {paidAt}.
War diese Seite hilfreich?