Appearance
Zephyr Scale (TM4J) for Jira Server migration
WARNING
MIGRATION AVAILABLE FOR ALLURE TESTOPS VERSION > 4.26.0
Configuration file example
Create the json file with content like:
json
{
"type": "tm4j",
"debug": true,
"requestLog": false
"oneByOne": true,
"allureConfig": {
"endpoint": "https://demo.testops.cloud/",
"token": "allure-testops-token",
"sslTrustAll": true,
"projectId": 81,
"migrationTagPrefix": "tm4j",
"folderCfPrefix": "Folder",
"issueTrackerId": 3
},
"tm4jConfig": {
"endpoint": "http://localhost:2990/jira",
"username": "admin",
"password": "admin",
"sslTrustAll": true,
"projectKey": "ZM",
"testFilter": "AND folder = \"/folder with some test cases\"",
"customFields": {
"priority": "Severity",
"status": "Status"
}
}
}
Configuration parameters
Name | Mandatory | Description | Example |
---|---|---|---|
commonProperties | yes | see description here: Common properties | |
allureConfig | yes | see description here: Allure TestOps properties | |
allureConfig.endpoint | yes | Allure TestOps instance url | |
tm4jConfig.endpoint | yes | Jira instance url | |
tm4jConfig.username | yes | Jira username | |
tm4jConfig.password | yes | Jira password | |
tm4jConfig.sslTrustAll | no | Flag if the host validation should take place. Example "true". | true |
tm4jConfig.projectKey | yes | Jira project key | TMJM |
tm4jConfig.testFilter | no | The filter for issues you want to migrate. We use the main filter like projectKey = "JQA" , so you can add an additional filter starting with AND . See examples: Zephyr Scale API Documentation under /testcase/search tab. | AND folder = "/folder with some test cases" |
tm4jConfig.customFields | no | A list of Jira fields which need to be migrated to Allure as custom fields. Structure: "jira_field_name": "TestOps_custom_field_name" | {"priority": "Severity"} |
tm4jConfig.statusMapping | no | The mapping for statuses. The default mapping looks like in the example. If you want to use it, don’t add this config into the file. All other different statuses will be mapped to “Draft” if no other rule is specified. | "statusMapping": { "Deprecated": "Outdated", "Approved": "Active", "Draft": "Draft" } |