Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/editor/ManiphestEditEngine.php
| Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
| This is equivalent to performing each move individually. | This is equivalent to performing each move individually. | ||||
| The most complex and most powerful form uses a dictionary to provide additional | The most complex and most powerful form uses a dictionary to provide additional | ||||
| information about the move, including an optional specific position within the | information about the move, including an optional specific position within the | ||||
| column. | column. | ||||
| The target column should be identified as `columnPHID`, and you may select a | The target column should be identified as `columnPHID`, and you may select a | ||||
| position by passing either `beforePHID` or `afterPHID`, specifying the PHID of | position by passing either `beforePHIDs` or `afterPHIDs`, specifying the PHIDs | ||||
| a task currently in the column that you want to move this task before or after: | of tasks currently in the column that you want to move this task before or | ||||
| after: | |||||
| ```lang=json | ```lang=json | ||||
| [ | [ | ||||
| { | { | ||||
| "columnPHID": "PHID-PCOL-4444", | "columnPHID": "PHID-PCOL-4444", | ||||
| "beforePHID": "PHID-TASK-5555" | "beforePHIDs": ["PHID-TASK-5555"] | ||||
| } | } | ||||
| ] | ] | ||||
| ``` | ``` | ||||
| Note that this affects only the "natural" position of the task. The task | When you specify multiple PHIDs, the task will be moved adjacent to the first | ||||
| position when the board is sorted by some other attribute (like priority) | valid PHID found in either of the lists. This allows positional moves to | ||||
| depends on that attribute value: change a task's priority to move it on | generally work as users expect even if the client view of the board has fallen | ||||
| priority-sorted boards. | out of date and some of the nearby tasks have moved elsewhere. | ||||
| EODOCS | EODOCS | ||||
| ); | ); | ||||
| $column_map = $this->getColumnMap($object); | $column_map = $this->getColumnMap($object); | ||||
| $fields = array( | $fields = array( | ||||
| id(new PhabricatorHandlesEditField()) | id(new PhabricatorHandlesEditField()) | ||||
| ->setKey('parent') | ->setKey('parent') | ||||
| ▲ Show 20 Lines • Show All 380 Lines • Show Last 20 Lines | |||||