|
| 1 | +--- |
| 2 | +title: "Jira" |
| 3 | +lang: "en-US" |
| 4 | +draft: false |
| 5 | +description: "Learn about how to set up a VDP Jira component https://github.com/instill-ai/instill-core" |
| 6 | +--- |
| 7 | + |
| 8 | +The Jira component is an application component that allows users to do anything available on Jira. |
| 9 | +It can carry out the following tasks: |
| 10 | + |
| 11 | +- [List Boards](#list-boards) |
| 12 | +- [List Issues](#list-issues) |
| 13 | +- [List Sprints](#list-sprints) |
| 14 | +- [Get Issue](#get-issue) |
| 15 | +- [Get Sprint](#get-sprint) |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +## Release Stage |
| 20 | + |
| 21 | +`Alpha` |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +## Configuration |
| 26 | + |
| 27 | +The component configuration is defined and maintained [here](https://github.com/instill-ai/component/blob/main/application/jira/v0/config/definition.json). |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +## Setup |
| 33 | + |
| 34 | + |
| 35 | +| Field | Field ID | Type | Note | |
| 36 | +| :--- | :--- | :--- | :--- | |
| 37 | +| Token (required) | `token` | string | Fill in your Jira API token. You can generate one from your Jira account "settings > security > API tokens". | |
| 38 | +| Base URL (required) | `base-url` | string | Fill in your Jira base URL. For example, if your Jira URL is https://mycompany.atlassian.net, then your base URL is https://mycompany.atlassian.net. | |
| 39 | +| Email (required) | `email` | string | Fill in your Jira email address. | |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +## Supported Tasks |
| 45 | + |
| 46 | +### List Boards |
| 47 | + |
| 48 | +List all boards in Jira |
| 49 | + |
| 50 | + |
| 51 | +| Input | ID | Type | Description | |
| 52 | +| :--- | :--- | :--- | :--- | |
| 53 | +| Task ID (required) | `task` | string | `TASK_LIST_BOARDS` | |
| 54 | +| Project Key or ID | `project-key-or-id` | string | This filters results to boards that are relevant to a project. Relevance meaning that the JQL filter defined in board contains a reference to a project. | |
| 55 | +| Board Type | `board-type` | string | The type of board, can be: scrum, kanban, simple. Default is simple | |
| 56 | +| Name | `name` | string | Name filters results to boards that match or partially match the specified name. Default is empty | |
| 57 | +| Start At | `start-at` | integer | The starting index of the returned boards. Base index: 0. Default is 0 | |
| 58 | +| Max Results | `max-results` | integer | The maximum number of boards to return. Default is 50 | |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +| Output | ID | Type | Description | |
| 63 | +| :--- | :--- | :--- | :--- | |
| 64 | +| Boards (optional) | `boards` | array[object] | A array of boards in Jira | |
| 65 | +| Start At | `start-at` | integer | The starting index of the returned boards. Base index: 0 | |
| 66 | +| Max Results | `max-results` | integer | The maximum number of boards | |
| 67 | +| Total | `total` | integer | The total number of boards | |
| 68 | +| Is Last | `is-last` | boolean | Whether the last board is reached | |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +### List Issues |
| 76 | + |
| 77 | +List issues in Jira |
| 78 | + |
| 79 | + |
| 80 | +| Input | ID | Type | Description | |
| 81 | +| :--- | :--- | :--- | :--- | |
| 82 | +| Task ID (required) | `task` | string | `TASK_LIST_ISSUES` | |
| 83 | +| Board ID (required) | `board-id` | integer | The ID of the board | |
| 84 | +| Range | `range` | object | Choose the range of issues to return. Default is `all` | |
| 85 | +| Start At | `start-at` | integer | The starting index of the returned boards. Base index: 0. Default is 0 | |
| 86 | +| Max Results | `max-results` | integer | The maximum number of boards to return. Default is 50 | |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | +| Output | ID | Type | Description | |
| 91 | +| :--- | :--- | :--- | :--- | |
| 92 | +| Issues (optional) | `issues` | array[object] | A array of issues in Jira | |
| 93 | +| Start At | `start-at` | integer | The starting index of the returned boards. Base index: 0 | |
| 94 | +| Max Results | `max-results` | integer | The maximum number of boards | |
| 95 | +| Total | `total` | integer | The total number of boards | |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +### List Sprints |
| 103 | + |
| 104 | +List sprints in Jira |
| 105 | + |
| 106 | + |
| 107 | +| Input | ID | Type | Description | |
| 108 | +| :--- | :--- | :--- | :--- | |
| 109 | +| Task ID (required) | `task` | string | `TASK_LIST_SPRINTS` | |
| 110 | +| Board ID (required) | `board-id` | integer | The ID of the board | |
| 111 | +| Start At | `start-at` | integer | The starting index of the returned boards. Base index: 0. Default is 0 | |
| 112 | +| Max Results | `max-results` | integer | The maximum number of boards to return. Default is 50 | |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | +| Output | ID | Type | Description | |
| 117 | +| :--- | :--- | :--- | :--- | |
| 118 | +| Sprints (optional) | `sprints` | array[object] | A array of sprints in Jira | |
| 119 | +| Start At | `start-at` | integer | The starting index of the returned boards. Base index: 0 | |
| 120 | +| Max Results | `max-results` | integer | The maximum number of boards | |
| 121 | +| Total | `total` | integer | The total number of boards | |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | +### Get Issue |
| 129 | + |
| 130 | +Get an issue in Jira |
| 131 | + |
| 132 | + |
| 133 | +| Input | ID | Type | Description | |
| 134 | +| :--- | :--- | :--- | :--- | |
| 135 | +| Task ID (required) | `task` | string | `TASK_GET_ISSUE` | |
| 136 | +| Issue ID or Key (required) | `issue-id-or-key` | string | The ID or key of the issue | |
| 137 | +| Update History | `update-history` | boolean | Whether the project in which the issue is created is added to the user's Recently viewed project list, as shown under Projects in Jira. | |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | +| Output | ID | Type | Description | |
| 142 | +| :--- | :--- | :--- | :--- | |
| 143 | +| ID | `id` | string | The ID of the issue | |
| 144 | +| Key | `key` | string | The key of the issue | |
| 145 | +| Self | `self` | string | The URL of the issue | |
| 146 | +| Fields | `fields` | object | The fields of the issue. All navigable and Agile fields are returned | |
| 147 | +| Issue Type (optional) | `issue-type` | string | The type of the issue, can be: `Task`, `Epic` | |
| 148 | +| Summary (optional) | `summary` | string | The summary of the issue | |
| 149 | +| Description (optional) | `description` | string | The description of the issue | |
| 150 | +| Status (optional) | `status` | string | The status of the issue, can be: `To Do`, `In Progress`, `Done` | |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | +### Get Sprint |
| 158 | + |
| 159 | +Get a sprint in Jira |
| 160 | + |
| 161 | + |
| 162 | +| Input | ID | Type | Description | |
| 163 | +| :--- | :--- | :--- | :--- | |
| 164 | +| Task ID (required) | `task` | string | `TASK_GET_SPRINT` | |
| 165 | +| Sprint ID (required) | `sprint-id` | integer | The ID of the sprint. The sprint will only be returned if you can view the board that the sprint was created on, or view at least one of the issues in the sprint. | |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | +| Output | ID | Type | Description | |
| 170 | +| :--- | :--- | :--- | :--- | |
| 171 | +| ID (optional) | `id` | integer | The ID of the sprint | |
| 172 | +| Self (optional) | `self` | string | The URL of the sprint | |
| 173 | +| State (optional) | `state` | string | The state of the sprint, can be: `active`, `closed`, `future` | |
| 174 | +| Name (optional) | `name` | string | The name of the sprint | |
| 175 | +| Start Date (optional) | `start-date` | string | The start date of the sprint. In the RFC3339 format, e.g. 2018-03-05T00:00:00Z | |
| 176 | +| End Date (optional) | `end-date` | string | The end date of the sprint. In the RFC3339 format, e.g. 2018-03-05T00:00:00Z | |
| 177 | +| Complete Date (optional) | `complete-date` | string | The complete date of the sprint. In the RFC3339 format, e.g. 2018-03-05T00:00:00Z | |
| 178 | +| Origin Board ID (optional) | `origin-board-id` | integer | The ID of the origin board | |
| 179 | +| Goal (optional) | `goal` | string | The Goal of the sprint | |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
0 commit comments