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 ClientId and ClientSecret in the Connection.
  • Authorize the Connection so Flowgear can store AccessToken and RefreshToken.
  • Click Acquire Metadata to populate CloudId when only one Jira site is available. If multiple sites are returned, select the correct CloudId from the list shown in the message.
  • Run the Connection test after CloudId is set to validate access.
  • The default Scope value is read: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 IDs query 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, Update and Delete, templates leave route values, such as issueIdOrKey, 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 DESC for jql, but the sample is not applied unless you enter it.
  • The Node follows Jira pages internally, so Query templates omit paging fields such as startAt, maxResults and nextPageToken. Supplying one in Parameters on a paged operation fails the Step. On operations Jira does not page, such as Find groups, maxResults is a result limit and still works.
  • Each item can carry its own route values, such as issueIdOrKey or id, so one Step can act on several records. Parameters values apply to items that do not. Where id is also a body field, for example on Update component or Update comment, the route value comes from Parameters only.
  • A route value missing from both the item and Parameters fails that item with Route value '<name>' was not provided., and later items still run.
  • Operations that take a request body require Items; without it the Step fails with Items was not provided. Operations without a request body run once from Parameters when Items is 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 Items fields:
    • Add watcher and Set preference take the value in Content.
    • Entity property setters, for example Set issue property, take the property value in Value.
    • Plan and team updates take their JSON-patch operations in Operations.
    • Avatar uploads take base64 image bytes in Content and the image type, for example image/png, in ContentType.
    • Add attachment takes base64 file bytes in Content, plus FileName and an optional ContentType.
  • A list result from Create, Update or Delete is returned in Results, a single value in Value, and a text response in Content.
  • Free-form maps, such as an issue's fields, pass through unchanged, so map custom fields by their Jira field IDs.
  • Query errors fail the Step.
  • A failed Create, Update or Delete item returns Flowgear.IsSuccess set to false with Jira's message in Flowgear.Message, and keeps Jira's errorMessages, errors and status fields. Later items still run. A success response that also contains errors, such as a partial bulk create, is a success row, so check its errors field. A rate limit that persists, a timeout, or a connection or authentication failure fails the Step instead, and earlier items are already saved.
  • A 403 usually means a missing scope or permission. If Jira keeps rejecting the token, reconnect the Connection.
  • 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.Message and Flowgear.Request instead of the root status, statusMessage, errorMessage and input fields, handle Query errors as Step errors, and remove saved startAt or maxResults values from paged Query Steps.

Known Issues

  • Some reads declare no response schema, for example Get bulk screen tabs, so their Query template shows an empty Response. Rows still contain Jira's fields.
  • The worklog lists Get IDs of deleted worklogs and Get IDs of updated worklogs return one page per call. Use the returned until value as the next since value in the Workflow.
  • Jira answers some reads with an invalid, expired or revoked token as an anonymous user, so a Query can return no rows instead of failing. Run the Connection test to check the token.