Integration Steps
Integration type
The HCL DevOps Plan plug-in supports scheduled events integration which are listed in the following table.
Name |
Description |
syncCompassIssueEvent |
Query the DevOps Plan server for issues in a project. |
Integration Procedure
There are two methods to integrate the plug-in:
- Using the user interface
- Using a JSON file
Method 1: Integrating the HCL DevOps Plan plug-in by using the user interface
1. On the Home page, click Settings > Integrations > Available tab.
2. Select HCL DevOps Plan from the list, and then click Install.
The Add HCL DevOps Plan Integration dialog is displayed.
3. Specify the properties by referring to the following table:
The following table lists the required fields that you must provide to integrate the HCL DevOps Plan plug-in.
Fields |
Action |
Integration name |
Enter the name for the integration. |
URL |
Enter the URL of HCL DevOps Plan server. |
Team Space |
Enter the Team Space Id of HCL DevOps Plan tenant. |
Application Name |
Enter the name of the HCL DevOps Plan application. |
Personal Access Token |
Enter the personal access token that you generated in your HCL DevOps Plan account. |
DevOps Plan Server Timezone |
Select the time zone offset from the Coordinated Universal Time (UTC). For example, if the HCL DevOps Plan server timezone is Asia/Kolkata, select UTC+05:30. |
Logging level |
Select ALL from the drop-down list. |
4. Click OK to add the integration.
The integration is listed on the Integrations page and Status field displays that the integration is Online. If the integration is not successful, the Status field displays that integration is Failed. You must use the View log option to troubleshoot the integration.
5. Synchronization of plug-in is set to 5 minutes by default. You can disable synchronization by using toggle icon in the Disable/Enable section on the Configured tab.
Method 2: Integrating the HCL DevOps Plan plug-in by 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. Refer to the sample JSON code in Configuration Properties section.
To integrate the HCL DevOps Plan plug-in using a JSON, perform the following steps:
1. Navigate to value stream page, and then click the necessary value stream.
2. Click
icon, and then Select Edit value stream to modify the JSON file in the code or tree view editors.
3. 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.
4. 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.
5. Click Save.
Stage Queries
When using a vsm.json
file to configure, it includes multiple stages. Stages are defined as objects within a stages array. The stages array is part of a phase object within a phases array. You can modify both phases and stages to match your own process. All stage queries are empty by default. You can add and remove phases, stages, and stage queries for your entire value stream.
The following is a simple example.
"phases": [
{
"name": "Planning",
"description": "Preparing Defects for Work",
"stages": [
{
"name": "Submitted",
"query": "issue.status=Submitted",
"description": "",
"wipLimit": null,
"gates": null
},
{
"name": "Postponed",
"query": "issue.status=Postponed",
"description": "",
"wipLimit": null,
"gates": null
},
{
"name": "Duplicates",
"query": "issue.status=Duplicates",
"description": "",
"wipLimit": null,
"gates": null
}
]
},
{
"name": "In-Progress",
"description": "Work Process to Resolve Defects",
"stages": [
{
"name": "Opened",
"query": "issue.status=Opened",
"description": "",
"wipLimit": null,
"gates": null
},
{
"name": "Assigned",
"query": "issue.status=Assigned",
"description": "",
"wipLimit": null,
"gates": null
}
]
},
{
"name": "Completed",
"description": "Defect Tracking after Work Completed",
"stages": [
{
"name": "Resolved",
"query": "issue.status=Resolved",
"description": "",
"wipLimit": null,
"gates": null
},
{
"name": "Closed",
"query": "issue.status=Closed",
"description": "",
"wipLimit": null,
"gates": null
}
]
}
]
DQL Queries
HCL DevOps Plan queries are based on issue objects. These objects have standardized HCL DevOps Velocity fields. Some standard fields are automatically mapped, while others are defined by custom mapping. Aside from standard fields, the HCL DevOps Plan issue object also contains a rawIssue field that is unique to HCL DevOps Plan.
- issue.type=Defects
- issue.owner=“John Bret”
- issue.status=Assigned
- issue.id=SAMPL000000012
- issue.project.name=Classic
- issue.rawIssue.customer=“Customer A”