Smart Workflow Transition
workflow_smart_transitionDetect whether a work item uses node-driven or state-driven workflow, then execute the appropriate transition automatically.
Instructions
Automatically detect node-driven vs status-driven workflow and execute the correct transition command. In auto mode it probes workflow_get_node first, then falls back to list-state-transitions when needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Transition strategy. auto means detect from backend behavior. | auto |
| dry_run | No | Leave true to preview/validate. Set false to really execute. | |
| node_id | No | Optional single node ID for node-driven transition. | |
| node_ids | No | Optional batch node IDs for node-driven transition. | |
| user_key | No | User key for state transition discovery. Default current_login_user(). | current_login_user() |
| node_action | No | Action used for node-driven workflow_transition. | confirm |
| project_key | No | Project key. Always pass explicitly in multi-project usage; resolve it with project_search first when missing. | |
| work_item_id | Yes | Target work item ID. | |
| transition_id | No | Preferred transition ID for state-driven transition-state. | |
| work_item_type | No | Required for state-driven discovery when transition_id is not provided. | |
| rollback_reason | No | Optional rollback reason for node-driven rollback. | |
| target_status_label | No | Optional state label to match when transition_id is not provided. | |
| auto_pick_first_transition | No | When true and multiple state transitions are available with no transition_id/target_status_label, auto-select the first returned transition. |