You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Bulk Copy

This command only processes the entities specified in the 'selections' parameter

Parameter Description
commandName Must be set to value 'BulkCopy'
projectId Id of the the project the action applies to (used by some actions to determine the custom fields & permissions required to complete the action)
selections Array of ID/Type objects i.e. [{"Id":"0a02cb6d-4afa-463c-a6df-9fe400b7d8fc","Type":"TestScript"}, {"Id":"0a675d09-78cd-463e-a600-9fc80153481b","Type":"AgileRun"}] which the bulk action will operate on
sourcePackageId unique identifier of the source package
targetId target identifier (unique identifier of the target for this operation, normally a package or parent requirement)
targetPackageId Id of the target package (if any, normally same as the targetId)
targetType The entity type of the target (any valid TQL entity type)

Scenarios

  • BulkCopyAssignmentsScenario
  • BulkCopyRequirementsScenario
  • BulkCopyScriptsScenario

Scenario "BulkCopyAssignmentsScenario"

Supported Types: ScriptAssignment, AutomatedTestAssignment, AgileRun

This scenario has scenario-specific parameters:

Parameter Description
removeEmptyPackages Remove empty source packages (true/false)
retainStructure Retain structure for selected items based on package structure relative to the source package (true/false)
scenarioName Must be set to value 'BulkCopyAssignmentsScenario'

Scenario "BulkCopyRequirementsScenario"

Supported Types: Requirement

This scenario has scenario-specific parameters:

Parameter Description
removeEmptyPackages Remove empty source packages (true/false)
retainStructure Retain structure for selected items based on package structure relative to the source package (true/false)
scenarioName Must be set to value 'BulkCopyRequirementsScenario'

Scenario "BulkCopyScriptsScenario"

Supported Types: Script, AutomatedTest

This scenario has scenario-specific parameters:

Parameter Description
removeEmptyPackages Remove empty source packages (true/false)
retainStructure Retain structure for selected items based on package structure relative to the source package (true/false)
scenarioName Must be set to value 'BulkCopyScriptsScenario'
  • No labels