Board consolidation¶
Source: BoardConsolidation.java.
The example drains tickets from a source board into a target board, then soft-deletes the source.
A subtle pagination rule matters here: moving an item changes the filtered collection. The example repeatedly reads the first source-board page until it is empty. It does not follow a previously returned page-2 URL after mutating the collection, because doing so could skip tickets.
WIP rules can reject moves with 422. A production migration should stop, report the target constraint, and resume only after the workflow is corrected.