Skip to content

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.

NameDescription
SyncJiraDataEventSynchronize data from a Jira server.

Minimum permission to integrate with Jira

The Jira Account used to generate the access token must have access to the project which is being integrated with IBM DevOps Velocity.

Integration

To install the plug-in, perform the following steps:

  1. In IBM DevOps Velocity, click Settings > Integrations > Available.
  2. In the Action column for the Jira plug-in, click Install.

There are two methods to integrate the plug-in:

  1. Using the user interface.
  2. Using a JSON file

The tables in the Configuration properties topic describe the properties used to define the integration.

Integrating the plug-in by using user interface

To integrate the plug-in using the user interface, perform the following steps:

  1. In IBM DevOps Velocity, click Settings > Integrations > Installed.
  2. In the Action column for the Jira plug-in, click Add Integration.
  3. On the Add Integration dialog, enter the values for the fields to configure the integration and define communication.
  4. Click Add.

Integrating the plug-in by using 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 plugin properties can be defined. Refer to the JSON sample code in the Configuration Properties section.

To integrate the plug-in using a JSON, perform the following steps:

  1. Navigate to value stream page, and then click the necessary value stream.
  2. Click wrench icon, and then Select Edit value stream to modify the JSON file in the code or tree view editors. Alternatively, you can also click Download JSON option to download the JSON file, and then select the Import JSON option to upload the revised JSON file.
  3. Edit the integration information in the JSON file to add the plug-in configuration properties. Refer to JSON sample code in the Configuration Properties section more details.
  4. Click Save.

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

NameDescriptionRequiredProperty Name
NAThe 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.Noimage
Integration NameAn assigned name to the value stream.Yesname
Logging LevelThe level of Log4j messages to log. Valid values are: all, debug, info, warn, error, fatal, off, and trace. The default is info.NologgingLevel
NAList of plug-in configuration properties used to connect and communicate with the Jira server. Enclose the properties within braces.Yesproperties
NAThe name of the tenant.Yestenant_id
Unique identifier assigned to the plugin. The value for the Jira plugin is ucv-ext-jira.yestype
IBM DevOps Velocity User Access KeyUnique identifier assigned to the plug-in. The value for the Jira plug-in is ucv-ext-jiraYesNA

Jira Configuration Properties table

NameTypeDescriptionRequiredProperty Name
Access TokenStringThe access token for oauth authentication with the Jira server.If supplied, Personal access token, Username and Password will be ignored.Noaccess_token
Access Token SecretStringThe access token secret for oauth authentication with the Jira server.Noaccess_token_secret
Consumer KeyStringThe consumer key for oauth authentication with the Jira server.If supplied, Personal access token, Username and Password will be ignored.Noconsumer_key
Consumer SecretStringThe consumer secret for oauth authentication with the Jira server.If supplied, Personal access token, Username and Password will be ignored.Noconsumer_key_secret
PasswordSecureCPassword 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.Nopassword
Project Keys (Comma separated)ArrayA list of Jira Project Keys separated by commas. Example: PROJ1, PROJ2'.YesjiraProjects
Jira JQLStringAny valid JQL Query. JQL Query has higher priority than Project Keys . If JQL Query is added , Project Keys will not work .NojiraJql
Proxy ServerStringThe URL of the proxy server including the port number.NoproxyServer
Proxy User NameStringThe user name used to authenticate with the proxy server.NoproxyUsername
Proxy PasswordStringThe password used to authenticate with the proxy server.NoproxyPassword
URLStringThe base URL of the Jira server.YesbaseUrl
User NameStringThe 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.Nousername
Personal Access TokenSecurePersonal 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.Nopat
Request TimeoutStringTimeout (in seconds) to apply to each request to the Jira server. Range is 10 to 150 secondsNorequestTimeout
Custom Field MappingMultilineMap 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".NofieldMapping

JSON sample code

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.

json

"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*"
    }
} ]