Skip to content

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

NameMandatoryDescriptionExample
commonPropertiesyessee description here:
Common properties
allureConfigyessee description here:
Allure TestOps properties
allureConfig.endpointyesAllure TestOps instance url
tm4jConfig.endpointyesJira instance url
tm4jConfig.usernameyesJira username
tm4jConfig.passwordyesJira password
tm4jConfig.sslTrustAllnoFlag if the host validation should take place. Example "true".true
tm4jConfig.projectKeyyesJira project keyTMJM
tm4jConfig.testFilternoThe 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.customFieldsnoA 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.statusMappingnoThe 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" }

Last updated: