You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Add Valid Stage Transition Tool
https://app.devrev.ai/devrev/works/ISS-187541
### Overview
Added `mcp_devrev_valid_stage_transition` tool to retrieve available
stage transitions for DevRev work items and parts.
### Features
- **Multi-type Support**: Works with issues (ISS-), tickets (TKT-), and
enhancements (ENH-)
- **Workflow Validation**: Returns only valid stage transitions from
current stage
- **Complete Transition Data**: Provides both stage names and internal
IDs
- **Support Subtypes**: Works with custom types
### Usage
```python
# Get valid transitions for an issue
valid_transitions = mcp_devrev_valid_stage_transition(type="issue", id="ISS-12345")
```
### Benefits
- Prevents invalid stage transition attempts
- Enables workflow automation with valid transition data
- Provides clear visibility into available next steps
### Returns
List of valid transitions with:
- Target stage name (e.g., "completed", "in_review")
- Target stage ID for API operations
This tool enhances DevRev workflow management by ensuring users only
attempt valid stage transitions.
---------
Co-authored-by: DevRev <[email protected]>
"applies_to_part": {"type": "string", "description": "The DevRev ID of the part to which the work item applies"},
86
86
"modified_by": {"type": "array", "items": {"type": "string"}, "description": "The DevRev IDs of the users who modified the work item"},
87
87
"owned_by": {"type": "array", "items": {"type": "string"}, "description": "The DevRev IDs of the users who are assigned to the work item"},
88
+
"stage": {"type": "string", "description": "The stage name of the work item. Use valid_stage_transition tool to get the list of valid stages you an update to."},
"description": {"type": "string", "description": "The description of the part"},
213
214
"target_close_date": {"type": "string", "description": "The target closed date of the part, for example: 2025-06-03T00:00:00Z"},
214
215
"target_start_date": {"type": "string", "description": "The target start date of the part, for example: 2025-06-03T00:00:00Z"},
216
+
"stage": {"type": "string", "description": "The stage DevRev ID of the part. Use valid_stage_transition tool to get the list of valid stages you an update to."},
description="gets a list of valid stage transition for a given work item (issue, ticket) or part (enhancement). Use this before updating stage of the work item or part to ensure the transition is valid.",
0 commit comments