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

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

Source: https://docs.go-lumen.ai/he/reference/steps/jira-create-issue

## במבט אחד

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

## קלט

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

״צריך״ ו״מפיק״ הם סוגי נתונים (file, text, fields, email). העורך מציע שלב רק במקום שבו מה שהוא צריך כבר נמצא במסלול. ראו [מסמכים ונתונים](https://docs.go-lumen.ai/he/concepts/how-flows-run.md#documents-and-data).

## פלט

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

| פלט | סוג |
| --- | --- |
| `key` | string |
| `issueId` | string |
| `url` | string |

## הגדרות

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

| הגדרה | סוג | ברירת מחדל | תיאור |
| --- | --- | --- | --- |
| `connectorRef` | string |  | Jira connection (minLength 1) |
| `project` (חובה) | string |  | Such as PROJ, as it starts the project's issue keys. (minLength 1; maxLength 200) |
| `issueType` | string | `"Task"` | Issue type (maxLength 100) |
| `summary` (חובה) | string |  | Summary (minLength 1; maxLength 1000) |
| `description` | string |  | Plain text; \*\*bold\*\*, lists, headings and links work. (maxLength 32000) |
| `labels` | list of string |  | Labels (maxItems 20) |
| `assignee` | string |  | An email or a Jira account id; empty leaves it unassigned. (maxLength 200) |
| `priority` | string |  | Priority (maxLength 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) |

ה-JSON Schema המלא של ההגדרות: [jira-create-issue.schema.json](https://docs.go-lumen.ai/schemas/steps/jira-create-issue.schema.json).

## דוגמה

```yaml title="config"
description: |-
  **Invoice:** {invoiceNumber}

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

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

צומת שמריץ את `jira-create-issue` נכנס תחת `spec.nodes` של [Flow](https://docs.go-lumen.ai/he/concepts/how-flows-run.md#the-flow-as-yaml). תנו לו כל מזהה, ורשמו ב-next את מזהי הצמתים הבאים.

```yaml title="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}
```
