Move element
rillsoft_element_moveMove tasks or subprojects within Rillsoft Project, reassigning WBS codes while preserving dependencies, assignments, and valid display rows.
Instructions
Moves elements - here an element is a task or a subproject. Give exactly one of position with newParentUuid, direction, or extractFromSubproject. RP reassigns the WBS codes; dependencies and assignments survive. Display rows stay valid: where only part of a row moves away, the row is split cleanly. In a portfolio no element changes its project and none goes directly below the portfolio, as in the user interface; with direction the projects themselves can be reordered at portfolio level. One undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | No | UUID of the task or subproject; give either uuid or uuids. After a rillsoft_task_split one UUID stands for every part of that task, and they then move together | |
| uuids | No | UUIDs of several elements that move together. This is the only way to move a display row built from different tasks in one piece; a nested selection is resolved for you, so a child moves with its subproject | |
| number | No | narrows an ambiguous UUID down to one part; only together with uuid | |
| position | No | zero-based target position below the parent; empty appends at the end | |
| direction | No | a relative step by one display row, as in the user interface. Only together with uuid. Where the element sits at the edge already, the answer is moved:false and no undo step is created | |
| newParentUuid | No | UUID of the new parent subproject; empty keeps the current parent and changes the position only | |
| extractFromSubproject | No | true = one level up, below the grandparent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wbs | No | WBS code | |
| name | No | name | |
| uuid | No | UUID of the element | |
| moved | Yes | false = the row was already at the edge; 'reason' says why | |
| start | No | start, DD.MM.YYYY hh:mm | |
| finish | No | finish, DD.MM.YYYY hh:mm | |
| number | No | number of the element; unique even for split tasks | |
| reason | No | why nothing was moved; only with moved:false | |
| elements | No | all moved elements with their new parent | |
| parentUuid | No | UUID of the parent project or subproject |