Jira v2
Provides integration with Jira Cloud, a work-management platform used to track issues, projects, releases, and service requests through Atlassian REST APIs.
The Flowgear Jira Node lets a Workflow query and modify Jira Cloud resources by using an OAuth Connection and template-selected operations.
Revision History
0.0.0.14 - Maintenance release.
0.0.0.15 - Removed query paging controls from templates and kept paging inside the Node.
0.0.0.16 - Preserved inherited fields in designer templates when OpenAPI schemas use constraints-only allOf overlays.
0.0.0.19 - Maintenance release.
0.0.0.21 - Runs on Cloud Runtimes only. Renamed Connection labels, returned mutation results in the Flowgear object, moved paged POST searches to Query, and added per-item route values, Items on Delete and CSV lists.
Connection
Use a Jira OAuth Connection for all methods.
| Property | Type | Description |
|---|---|---|
CloudId |
String | Jira Cloud tenant ID. Click Acquire Metadata to populate it automatically when the Atlassian account has access to one site, or to list available IDs when it has access to multiple sites. |
ClientId |
String | Client ID from your Atlassian OAuth app. |
ClientSecret |
Masked | Client secret from your Atlassian OAuth app. |
AccessToken |
Masked | OAuth access token populated after you connect the account. |
RefreshToken |
Masked | OAuth refresh token used to renew the access token when it expires. |
Scope |
String | Space-delimited Atlassian scopes requested during authorization. The default value is read:jira-work offline_access. |
TimeoutSeconds |
Integer | Timeout applied to Jira API calls, from 1 to 300 seconds. The default value is 30. |
Setup Notes
- Create an Atlassian OAuth 2.0 app for Jira Cloud and use its
ClientIdandClientSecretin theConnection. - Authorize the
Connectionso Flowgear can storeAccessTokenandRefreshToken. - Click
Acquire Metadatato populateCloudIdwhen only one Jira site is available. If multiple sites are returned, select the correctCloudIdfrom the list shown in the message. - Run the
Connectiontest afterCloudIdis set to validate access. - The default
Scopevalue isread:jira-work offline_access. Change it if the Jira operations you want to run need additional Atlassian scopes. - This Node is for Jira Cloud and runs on Cloud Runtimes. Jira Server and Jira Data Center are not supported.
Methods
The Jira Node exposes four invoke methods that use template-selected OperationId values from the embedded Jira OpenAPI schema.
Query
Executes a Jira query operation and streams all result pages. It also runs the paged POST searches: Search for issues using JQL enhanced search (POST), Bulk fetch changelogs, Suggested priorities for mappings, Bulk get custom field configurations and Get custom field contexts for projects and issue types.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | The Jira OAuth Connection. |
OperationId |
String | Identifier of the Jira operation to execute. Templates set this value for the selected operation. |
Parameters |
Object | Optional route and query parameters required by the selected operation. For a paged POST search, it also holds the request body fields, for example jql and fields. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One response row per returned Jira item. Successful results expose Jira fields at the row root. List responses emit one row per item without the paging fields. |
Create
Executes a Jira create operation and sends request body items to the selected endpoint.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | The Jira OAuth Connection. |
OperationId |
String | Identifier of the Jira operation to execute. Templates set this value for the selected operation. |
Parameters |
Object | Optional route and query parameters required by the selected operation. |
Items |
Array | Each item holds the request body and, optionally, its own route values, for example issueIdOrKey. Required when the operation takes a request body. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per item, or one row when an operation without a request body runs once from Parameters. Each row holds the Jira response fields and the Flowgear object with IsSuccess, Message, and Request. |
Update
Executes a Jira update operation and sends request body items to the selected endpoint.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | The Jira OAuth Connection. |
OperationId |
String | Identifier of the Jira operation to execute. Templates set this value for the selected operation. |
Parameters |
Object | Optional route and query parameters required by the selected operation. |
Items |
Array | Each item holds the request body and, optionally, its own route values, for example issueIdOrKey or id. Required when the operation takes a request body. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per item, or one row when an operation without a request body runs once from Parameters. Each row holds the Jira response fields and the Flowgear object with IsSuccess, Message, and Request. |
Delete
Executes a Jira delete operation.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | The Jira OAuth Connection. |
OperationId |
String | Identifier of the Jira operation to execute. Templates set this value for the selected operation. |
Parameters |
Object | Optional route and query parameters required by the selected operation. |
Items |
Array | Optional. Each item holds its own route values, for example id, and the request body where Jira declares one. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per item, or one row when the operation runs once from Parameters, with any Jira response fields and the Flowgear object with IsSuccess, Message, and Request. |
Usage Notes
- Use templates to pick supported Jira operations. The built-in
Get Available Cloud IDsquery template lists the Jira sites that the current OAuth account can access. - Some operations also list a
(Full Schema)template. It shows the nested fields that the standard template cuts off, and both templates run the same operation. - On
Create,UpdateandDelete, templates leave route values, such asissueIdOrKey, empty, so a new Step never changes a record you did not name. Fill them in before running the Step. - Search, filter and expression inputs show a sample, for example
project = HSP AND statusCategory != Done ORDER BY created DESCforjql, but the sample is not applied unless you enter it. - The Node follows Jira pages internally, so
Querytemplates omit paging fields such asstartAt,maxResultsandnextPageToken. Supplying one inParameterson a paged operation fails the Step. On operations Jira does not page, such asFind groups,maxResultsis a result limit and still works. - Each item can carry its own route values, such as
issueIdOrKeyorid, so one Step can act on several records.Parametersvalues apply to items that do not. Whereidis also a body field, for example onUpdate componentorUpdate comment, the route value comes fromParametersonly. - A route value missing from both the item and
Parametersfails that item withRoute value '<name>' was not provided., and later items still run. - Operations that take a request body require
Items; without it the Step fails withItems was not provided.Operations without a request body run once fromParameterswhenItemsis not connected. Their items hold route values only, so any other field, such as a misspelt route name, fails that item. - A body field set to null in an item clears that field on some Jira updates. Leave the field out of the mapping to keep Jira's current value.
- Some request bodies use Node-owned
Itemsfields:Add watcherandSet preferencetake the value inContent.- Entity property setters, for example
Set issue property, take the property value inValue. - Plan and team updates take their JSON-patch operations in
Operations. - Avatar uploads take base64 image bytes in
Contentand the image type, for exampleimage/png, inContentType. Add attachmenttakes base64 file bytes inContent, plusFileNameand an optionalContentType.
- A list result from
Create,UpdateorDeleteis returned inResults, a single value inValue, and a text response inContent. - Free-form maps, such as an issue's
fields, pass through unchanged, so map custom fields by their Jira field IDs. Queryerrors fail the Step.- A failed
Create,UpdateorDeleteitem returnsFlowgear.IsSuccessset tofalsewith Jira's message inFlowgear.Message, and keeps Jira'serrorMessages,errorsandstatusfields. Later items still run. A success response that also containserrors, such as a partial bulk create, is a success row, so check itserrorsfield. A rate limit that persists, a timeout, or a connection or authentication failure fails the Step instead, and earlier items are already saved. - A
403usually means a missing scope or permission. If Jira keeps rejecting the token, reconnect theConnection. - String and integer lists use comma-separated values (CSV), for example
a,b. Enclose values containing commas, quotes or line breaks in double quotes, and double any quotes inside a value. Empty text represents an empty list. - Workflows built on version 0.0.0.19 must map
Flowgear.IsSuccess,Flowgear.MessageandFlowgear.Requestinstead of the rootstatus,statusMessage,errorMessageandinputfields, handleQueryerrors as Step errors, and remove savedstartAtormaxResultsvalues from pagedQuerySteps.
Known Issues
- Some reads declare no response schema, for example
Get bulk screen tabs, so theirQuerytemplate shows an emptyResponse. Rows still contain Jira's fields. - The worklog lists
Get IDs of deleted worklogsandGet IDs of updated worklogsreturn one page per call. Use the returneduntilvalue as the nextsincevalue in the Workflow. - Jira answers some reads with an invalid, expired or revoked token as an anonymous user, so a
Querycan return no rows instead of failing. Run theConnectiontest to check the token.