Jira Server (Data Center)
The Jira Server (Data Center) connector lets you connect to Jira Software Data Center and perform insert, delete, update, and read operations.
Supported versions
This connector supports Jira Server Data Center API versions V2 and V3.
Before you begin
In your Google Cloud project, do the following tasks:
- Ensure that network connectivity is set up. For information about network patterns, see Network connectivity.
- Grant the roles/connectors.admin IAM role to the user configuring the connector.
- Grant the
roles/secretmanager.viewer
androles/secretmanager.secretAccessor
IAM roles to the service account that you want to use for the connector. - Enable the following services:
secretmanager.googleapis.com
(Secret Manager API)connectors.googleapis.com
(Connectors API)
To understand how to enable services, see Enabling services. If these services or permissions have not been enabled for your project previously, you are prompted to enable them when you configure the connector.
Configure the connector
A connection is specific to a data source. It means that if you have many data sources, you must create a separate connection for each data source. To create a connection, do the following:
- In the Cloud console, go to the Integration Connectors > Connections page and then select or create a Google Cloud project.
- Click + CREATE NEW to open the Create Connection page.
- In the Location section, choose the location for the connection.
- Region: Select a location from the drop-down list.
For the list of all the supported regions, see Locations.
- Click NEXT.
- Region: Select a location from the drop-down list.
- In the Connection Details section, complete the following:
- Connector: Select Jira Server (Data Center) from the drop down list of available Connectors.
- Connector version: Select the Connector version from the drop down list of available versions.
- In the Connection Name field, enter a name for the Connection instance.
Connection names must meet the following criteria:
- Connection names can use letters, numbers, or hyphens.
- Letters must be lower-case.
- Connection names must begin with a letter and end with a letter or number.
- Connection names cannot exceed 49 characters.
- Optionally, enter a Description for the connection instance.
- Optionally, enable Cloud logging,
and then select a log level. By default, the log level is set to
Error
. - Service Account: Select a service account that has the required roles.
- To use the connection for event subscriptions, select Enable event subscription. The
following options appear:
- Enable event subscription with entity and actions: Select this option to use the connection for both event subscription and connector operations (entities and actions).
- Enable only event subscription: Select this option to use the connection only for event subscription. If you select this option, click Next, and then configure event subscription.
- Optionally, configure the Connection node settings:
- Minimum number of nodes: Enter the minimum number of connection nodes.
- Maximum number of nodes: Enter the maximum number of connection nodes.
A node is a unit (or replica) of a connection that processes transactions. More nodes are required to process more transactions for a connection and conversely, fewer nodes are required to process fewer transactions. To understand how the nodes affect your connector pricing, see Pricing for connection nodes. If you don't enter any values, by default the minimum nodes are set to 2 (for better availability) and the maximum nodes are set to 50.
- Use proxy: Select this checkbox to configure a proxy server for the connection and configure the following values:
-
Proxy Auth Scheme: Select the authentication type to authenticate with the proxy server. The following authentication types are supported:
- Basic: Basic HTTP authentication.
- Digest: Digest HTTP authentication.
- Proxy User: A user name to be used to authenticate with the proxy server.
- Proxy Password: The Secret manager secret of the user's password.
-
Proxy SSL Type: The SSL type to use when connecting to the proxy server. The following authentication types are supported:
- Auto: Default setting. If the URL is an HTTPS URL, then the Tunnel option is used. If the URL is an HTTP URL, then the NEVER option is used.
- Always: The connection is always SSL enabled.
- Never: The connection is not SSL enabled.
- Tunnel: The connection is through a tunneling proxy. The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy.
- In the Proxy Server section, enter details of the proxy server.
- Click + Add destination.
- Select a Destination Type.
- Host address: Specify the hostname or IP address of the destination.
If you want to establish a private connection to your backend system, do the following:
- Create a PSC service attachment.
- Create an endpoint attachment and then enter the details of the endpoint attachment in the Host address field.
- Host address: Specify the hostname or IP address of the destination.
- Optionally, if you want to use SSL, select Enable SSL. This displays the SSL configuration details.
- Select a trust store type. It can be either Public, Private, or Insecure Connection.
- Select the certificates as displayed based on your trust store selection.
- If you are using mTLS, select the key store certificates in the Key Store section.
- Optionally, click + ADD LABEL to add a label to the Connection in the form of a key/value pair.
- Click NEXT.
- In the Destinations section, enter details of the remote host (backend system) you want to connect to.
- Destination Type: Select a Destination Type.
- Select Host address from the list to specify the hostname or IP address of the destination.
- If you want to establish a private connection to your backend systems, select Endpoint attachment from the list, and then select the required endpoint attachment from the Endpoint Attachment list.
If you want to establish a public connection to your backend systems with additional security, you can consider configuring static outbound IP addresses for your connections, and then configure your firewall rules to allowlist only the specific static IP addresses.
To enter additional destinations, click +ADD DESTINATION.
- Click NEXT.
- Destination Type: Select a Destination Type.
-
In the Authentication section, enter the authentication details.
- Select an Authentication type and enter the relevant details.
The following authentication types are supported by the Jira Server (Data Center) connection:
- User Password
- API Token
- Personal Access Token
- OAuth 2.0 - Authorization code
- Click NEXT.
To understand how to configure these authentication types, see Configure authentication.
- Select an Authentication type and enter the relevant details.
- Review: Review your connection and authentication details.
- Click Create.
Event subscription details
In the Event subscription details section, provide details of the Jira Server (Data Center) account where the event subscriptions will be created.
- Destination Type: Select Host address.
- Host: Enter the registration URL of your Jira Server (Data Center) account. Event subscriptions will be created for this URL.
- API token: Select the Secret Manager secret containing the API token associated with the username.
- Secret version: Select a secret version.
- Enable data enrichment: Select this checkbox if you want the Jira Server (Data Center) trigger to retrieve the complete event payload from the Jira Server (Data Center) instance. See Trigger output for examples.
- Select Enable private connectivity for secured connectivity between your backend application and your connection. If you select this option, you must perform additional configuration steps after creating the connection. For more information, see Private connectivity for event subscription.
- Enter the dead-letter configuration. If you configure dead-letter, the connection writes
the unprocessed events to the specified Pub/Sub topic. Enter the following details:
- Dead-letter project ID: The Google Cloud project ID where you have configured the dead-letter Pub/Sub topic.
- Dead-letter topic: The Pub/Sub topic where you want to write the details of the unprocessed event.
Configure authentication
Enter the details based on the authentication you want to use.
-
User Password
- Username: Enter the Jira Server (Data Center) user account used to authenticate.
- Password: Enter the password associated with the account.
-
API Token
- Username: Enter the Jira Server (Data Center) username used to create the API token.
- API token: Select the Secret Manager Secret containing the API token.
-
Personal Access Token
- Personal access token: Provide the secret manager secret containing the personal access token.
- Secret version: Select the secret version for the secret selected.
-
OAuth 2.0 - Authorization code
- Client ID: Provide the client ID as provided by your external application.
- Scopes: Specify the required permission scopes.
- Client secret : Select the Secret Manager secret. You must have created the Secret Manager secret before configuring this authorization.
- Secret version: Select the secret manager secret version for client secret.
- Authorization URL: Provide the URL generated during client creation.
For the
Authorization code
authentication type, after creating the connection, you must perform a few additional steps for configuring authentication. For more information, see Additional steps after connection creation.
Jira Server (Data Center) configuration
Set up an Altassian account and login to Jira Cloud
For information about setting up an Altassian account and logging to Jira Cloud, see Atlassian home.
Set up a host address and authentication details
- Login to your Jira Cloud instance.
- Enter the host address which is the instance details.
- Enter your username which is your Atlassian account ID.
- Go to Settings to generate the API token.
- Select Atlassian account settings from personal settings.
- Click the Security tab, find API tokens and click Create and Manage API tokens.
- Click Create API token.
- Enter a memorable and concise label for your token from the dialog that appears, and click Create.
- Click Copy to clipboard, paste the token to your script, and save for further use.
Additional steps after connection creation
If you selected OAuth 2.0 - Authorization code
for
authentication, you must do the following additional steps after creating the connection:
- In the Connections page,
locate the newly created connection.
Notice that the Status for the new connector will be Authorization required.
- Click Authorization required.
This shows the Edit authorization pane.
- Copy the Redirect URI value to your external application.
- Verify the authorization details.
- Click Authorize.
If the authorization is successful, the connection status will be set to Active in the Connections page.
Re-authorization for authorization code
If you are using Authorization code
authentication type and have made any configuration changes in your Jira Server (Data Center) application,
you must re-authorize your Jira Server (Data Center) connection. To re-authorize a connection, perform the following steps:
- Click on the required connection in the Connections page.
This opens the connection details page.
- Click Edit to edit the connection details.
- Verify the OAuth 2.0 - Authorization code details in the Authentication section.
If required, make the necessary changes.
- Click Save. This takes you to the connection details page.
- Click Edit authorization in the Authentication section. This shows the Authorize pane.
- Click Authorize.
If the authorization is successful, the connection status will be set to Active in the Connections page.
Connection configuration samples
This section lists the sample values for the various fields that you configure when creating the Jira Server connection.
Jira web connection type
Field name | Details |
---|---|
Location | us-east1 |
Connector | Jira Server (Data Center) |
Connector version | 1 |
Connection Name | google-cloud-jira-rest-conn |
Service Account | my-service-account@my-project.iam.gserviceaccount.com |
Minimum number of nodes | 2 |
Maximum number of nodes | 50 |
Destination Type | Host Address |
host | 192.0.2.0 |
Username | USERNAME |
API Token | API_TOKEN |
Secret Version | 1 |
System limitations
The Jira Server (Data Center) connector can process a maximum of 15 transactions per second, per node, and throttles any transactions beyond this limit. By default, Integration Connectors allocates 2 nodes (for better availability) for a connection.
For information on the limits applicable to Integration Connectors, see Limits.
Use the Jira Server (Data Center) connection in an integration
After you create the connection, it becomes available in both Apigee Integration and Application Integration. You can use the connection in an integration through the Connectors task.
- To understand how to create and use the Connectors task in Apigee Integration, see Connectors task.
- To understand how to create and use the Connectors task in Application Integration, see Connectors task.
Entity operation examples
This section provides examples of how to perform the entity operations in this connector.
Example - List Issues
- In the
Configure connector task
dialog, clickEntities
. - Select Issues from the
Entity
list. - Select the
LIST
operation, and then click Done. - Task Input section of the Connectors task, you can set the filterClause as per the customer requirement.
You must use single quotes (') to enclose the value for a filter clause. You can use the filter clause to filter records based on the columns.
You can use the filter clause to filter records based on the columns.
For example, to filter records, use the following filterClause: Location='US'
and region='us-east1'
.
Example - Get Issues
- In the
Configure connector task
dialog, clickEntities
. - Select Issues from the
Entity
list. - Select the
GET
operation, and then click Done. - Set the entity ID to 10000 which is the Key ID to be passed for Issues. To set the entity ID, in
the Task Input section of the Connectors task, click EntityId and
then enter
10000
in the Default Value field.The value of the entity ID should be passed directly. Such as, 10000. Here, 10000 is the unique primary key value, which is passed.
To use the Get operation the entity must have a unique primary key else the Get operation can not be performed.
Example - Delete Issues
- In the
Configure connector task
dialog, clickEntities
. - Select Issues from the
Entity
list. - Select the
DELETE
operation, and then click Done. - Set the entity ID to 10000 which is the Key to be passed.. To set the entity ID, in
the Task Input section of the Connectors task, click EntityId and
then enter
10000
in the Default Value field.
Example - Create IssueTypes
- In the
Configure connector task
dialog, clickEntities
. - Select IssueTypes from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "Name": "task123456", "Description": "New description is added." }
If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "Id": "10041" }
Example - Create Issues
- In the
Configure connector task
dialog, clickEntities
. - Select Issues from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "IssueTypeName": "Subtask", "ProjectName": "kanban4", "Summary": "Summary Added", "ParentKey": "KN-6" }
If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "Id": 10071.0 }
Example - Create Sprints
- In the
Configure connector task
dialog, clickEntities
. - Select Sprints from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "Name": "PROJ Sprint Googlecloud", "State": "future", "Goal": null, "OriginBoardId": 2.0, "StartDate": "2023-06-27 07:06:08", "EndDate": "2023-07-27 07:06:08" }
If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "Id": 23.0 }
Example - Create Comments
- In the
Configure connector task
dialog, clickEntities
. - Select Comments from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "IssueId": 10001.0, "Body": "Adding comments to above ID by editing it" }
If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "Id": 10023.0, "IssueId": null }
Example - Create Users
- In the
Configure connector task
dialog, clickEntities
. - Select Users from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "GroupName": null, "DisplayName": "Sample", "EmailAddress": "sample@gmail.com", "Active": true, "TimeZone": null, "Locale": "en_US", "AccountType": "atlassian" }
If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "AccountId": "557058:0a04612c-746d-4d47-a909-71ba797fe228" }
Example - Create Worklogs
- In the
Configure connector task
dialog, clickEntities
. - Select Worklogs from the
Entity
list. - Select the
Create
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "IssueKey": "GJCT-1", "Started": "2023-06-10 08:08:08", "TimeSpent": "2000" }
If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "Id": "41718", "IssueId": 10000.0 }
Example - Update IssueTypes
- In the
Configure connector task
dialog, clickEntities
. - Select IssueTypes from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "Name": "NEW_TASK", "Description": "New Description" }
- Set the entity ID to the entity of the IssueTypes . To set the entity ID,
click entityId and then enter
10038
in the Default Value field.If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "Id": "10038" }
Example - Update Issues
- In the
Configure connector task
dialog, clickEntities
. - Select Issues from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "AssigneeAccountId": "61d572aa7c6f9800705289a1", "AssigneeName": "Charlie b" }
- Set the entity ID to the entity of the Issues . To set the entity ID,
click entityId and then enter
10024
in the Default Value field.If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ "AssigneeDisplayName": "Charlie b" }
Example - Update Sprints
- In the
Configure connector task
dialog, clickEntities
. - Select Sprints from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "Name": "PROJ Sprint Googlecloud_Updated", "State": "future", "StartDate": "2023-06-27 07:06:08", "EndDate": "2023-07-27 07:06:08" }
- Set the entity ID to the entity of the Sprints . To set the entity ID,
click entityId and then enter
2
in the Default Value field.If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ }
Example - Update Comments
- In the
Configure connector task
dialog, clickEntities
. - Select Comments from the
Entity
list. - Select the
Update
operation, and then click Done. - In the Task Input section of the Connectors task, click
connectorInputPayload
and then enter a value similar to the following in theDefault Value
field:{ "Name": "PROJ Sprint Googlecloud_Updated", "State": "future", "StartDate": "2023-06-27 07:06:08", "EndDate": "2023-07-27 07:06:08" }
- Set the entity ID to the entity of the Comments . To set the entity ID,
click entityId and then enter
2
in the Default Value field.If the integration is successful, the connector task's
connectorOutputPayload
response parameter will have a value similar to the following:{ }
Get help from the Google Cloud community
You can post your questions and discuss this connector in the Google Cloud community at Cloud Forums.What's next
- Understand how to suspend and resume a connection.
- Understand how to monitor connector usage.
- Understand how to view connector logs.