Jira - Usage
To use the Jira plug-in, the plug-in must be loaded and an instance created before you can configure the plug-in integration. You define configuration properties in the user interface or in a JSON file.
Integration type
The Jira plug-in supports scheduled events integration which are listed in the following table.
Name | Description |
---|---|
SyncJiraDataEvent | Synchronize data from a Jira server. |
Integration
There are two methods to integrate the plug-in:
- Using the user interface
- Using a JSON file
The tables in the Configuration properties topic describe the properties used to define the integration.
Using the user interface
- From the Plugins page, click Settings > Integrations > Plugins.
- Under the Action column for the plug-in, click Add Integration.
- On the Add Integration page enter values for the fields used to configure the integration and define communication.
- Click Save.
Using a JSON file
The JSON file contains the information for creating a value stream. Within the JSON file is a section for integrations. It is in this section that plug-in properties can be defined.
- From a value stream page, download the value stream map. The value stream map is a JSON file used to define integrations.
- Edit the JSON file to include the plug-in configuration properties.
- Save and upload the JSON file. This replaces the current JSON file with the new content.
- View the new integration on the Integrations page.
Configuration properties
The following tables describe the properties used to configure the integration. Each table contains the field name when using the user interface and the property name when using a JSON file.
- The General Configuration Properties table describes configuration properties used by all plug-in integrations.
- The Jira Configuration Properties table describes the configuration properties that define the connection and communications with the Jira server. When using the JSON method to integrate the plug-in these properties are coded within the
properties
configuration property.
General Configuration table
Name | Description | Required |
---|---|---|
image | The version of the plug-in that you want to use. To view available versions, see the UrbanCode DockerHub. If a value is not specified, the latest version is used. | No |
name | An assigned name to the value stream. | Yes |
loggingLevel | The level of Log4j messages to log. Valid values are: all, debug, info, warn, error, fatal, off, and trace. The default is info. | No |
properties | List of plug-in configuration properties used to connect and communicate with the Jira server. Enclose the properties within braces. | Yes |
tenant_id | The name of the tenant. | Yes |
type | Unique identifier assigned to the plug-in. The value for the Jira plug-in is ucv-ext-jira |
Yes |
Jira Configuration Properties table
Name | Type | Description | Required | Property Name |
---|---|---|---|---|
Access Token | String | The access token for oauth authentication with the Jira server.If supplied, Personal access token, Username and Password will be ignored. | No | access_token |
Access Token Secret | String | The access token secret for oauth authentication with the Jira server. | No | access_token_secret |
Consumer Key | String | The consumer key for oauth authentication with the Jira server.If supplied, Personal access token, Username and Password will be ignored. | No | consumer_key |
Consumer Secret | String | The consumer secret for oauth authentication with the Jira server.If supplied, Personal access token, Username and Password will be ignored. | No | consumer_key_secret |
Password | Secure | CPassword to authenticate with the Jira. If supplied, Personal access token will be ignored.\n NOTE: For Jira cloud version the Access Token should be entered in the Password field. | No | password |
Project Keys (Comma separated) | Array | A list of Jira Project Keys separated by commas. Example: PROJ1, PROJ2’. | Yes | jiraProjects |
Jira JQL | String | Any valid JQL Query. JQL Query has higher priority than Project Keys . If JQL Query is added , Project Keys will not work . | No | jiraJql |
Proxy Server | String | The URL of the proxy server including the port number. | No | proxyServer |
Proxy User Name | String | The user name used to authenticate with the proxy server. | No | proxyUsername |
Proxy Password | String | The password used to authenticate with the proxy server. | No | proxyPassword |
URL | String | The base URL of the Jira server. | Yes | baseUrl |
User Name | String | The user name used to authenticate with the Jira server.If supplied, Personal access token will be ignored.\n NOTE: For Jira Cloud version, the User Name should be entered in the UserName field. | No | username |
Personal Access Token | Secure | Personal Access Token to authenticate with the Jira server. If supplied, Username and Password will be ignored.\n NOTE: For Jira cloud version provide username and password.\n For Jira server provide personal access token. | No | pat |
Request Timeout | String | Timeout (in seconds) to apply to each request to the Jira server. Range is 10 to 150 seconds | No | requestTimeout |
Custom Field Mapping | Multiline | Map Jira fields to the fields expected by this server as a Name Value pair, eg: “Epic Link”: “Epic field in Jira”, “Sprint”: “Sprint field in Jira”, “Story Points”: “Story field in Jira”. | No | fieldMapping |
Example
The following example can be used as a template to include the Jira plug-in integration into the JSON file. Copy and paste the template into the JSON file and make the appropriate changes.
"integrations": [ {
"type": "ucv-ext-jira",
"tenant_id": "*tenantid*",
"name": "Jira_Plugin ",
"properties": {
"baseUrl": "*jira_server_url*",
"username": "*jira_server_user_name*",
"password": "*jira_server_password*",
"consumer_key": null,
"consumer_secret": null,
"access_token": null,
"access_token_secret": null,
"jiraJql":"*project in ("John-Project")*",
"proxyServer": "*proxy_server_url*",
"proxyUsername": "*proxy_server_user_name*",
"proxyPassword": "*proxy_server_password*"
}
} ]
Back to … | Latest Version | Jira | |||
---|---|---|---|---|---|
All Plugins | Velocity Plugins | 2.3.20-File 1 and 2.3.20-File 2 | Readme | Overview | Downloads |