Moving a Requirement within a Module

Once you have instantiated an OSLC client, you can use the SetRequirementChildren class to move a requirement already part of a DOORS Next Module to a different location within the module hierarchy.

DOORS Next does not provide a mean to directly move a requirement "R1" below another requirement "R2", the two being part of the same module. Instead, it provides a mean to change and reorder the list of child requirements of a parent requirement.

Here are the steps to move a module requirement:

  1. Determine the list of existing child requirements of requirement "R2". This is achieved with the GetModuleContext class.
  2. Copy this list of requirements to include requirement "R1" at the right position.
  3. Send the new list of child requirements of requirement "R2" using the SetRequirementChildren class.

Related concepts
Module

Related tasks
Creating an OSLC client
Using OSLC Configurations
Creating a Requirement

Related reference
API Reference