דלג לתוכן הראשי

ליצור כרטיס ב-Jira

שלבjira-create-issuesaveהשפעה חיצונית

יוצר כרטיס בפרויקט ב-Jira, עם תקציר, תיאור, תוויות, אחראי/ת וכרטיס אב.

במבט אחד​

מאפייןערך
שם השלבjira-create-issue
משאבClusterStep (lumen.ai/v1alpha1)
קבוצה וקטגוריהsave, jira
קרדיטים0.5 קרדיטים בכל פעם שהוא מצליח
השפעה חיצוניתכן הוא משנה משהו מחוץ ל-Lumen, ולכן ניסיון חוזר שואל קודם, ובדיקה מראה מה הוא היה עושה במקום לעשות את זה.
ההתקנה צריכה לספקכלום

קלט​

מאפייןערך
צריךכלום
מפיקfields
עובד עלitem מסמך אחד בכל פעם

״צריך״ ו״מפיק״ הם סוגי נתונים (file, text, fields, email). העורך מציע שלב רק במקום שבו מה שהוא צריך כבר נמצא במסלול. ראו מסמכים ונתונים.

פלט​

צומת מאוחר יותר מפנה לפלט כ-{nodeId.field} בטקסט, או כ-nodeId.field בתנאי.

פלטסוג
keystring
issueIdstring
urlstring

הגדרות​

מגדירים תחת config: בצומת של התהליך. הגדרות טקסט יכולות להכיל מצייני מקום כמו {nodeId.field}.

הגדרהסוגברירת מחדלתיאור
connectorRefstring-Jira connectionminLength 1
projectחובהstring-Such as PROJ, as it starts the project's issue keys.minLength 1; maxLength 200
issueTypestring"Task"Issue typemaxLength 100
summaryחובהstring-SummaryminLength 1; maxLength 1000
descriptionstring-Plain text; **bold**, lists, headings and links work.maxLength 32000
labelslist of string-LabelsmaxItems 20
assigneestring-An email or a Jira account id; empty leaves it unassigned.maxLength 200
prioritystring-PrioritymaxLength 100
parentstring-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

ה-JSON Schema המלא של ההגדרות: jira-create-issue.schema.json.

דוגמה​

config
description: |-
**Invoice:** {invoiceNumber}

Please check the amount.
issueType: Task
labels:
- supplier
project: OPS
summary: Complaint from {supplier}

שימוש בתהליך​

צומת שמריץ את jira-create-issue נכנס תחת spec.nodes של Flow. תנו לו כל מזהה, ורשמו ב-next את מזהי הצמתים הבאים.

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}