Skip to content

Conversation

floatingIce91
Copy link
Contributor

@floatingIce91 floatingIce91 commented Jun 26, 2025

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

# 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.

@floatingIce91 floatingIce91 requested a review from a team as a code owner June 26, 2025 11:49
@shivam-gupta-devrev
Copy link
Contributor

Let's do some extensive testing here before merging.

@floatingIce91
Copy link
Contributor Author

Yeah I will do it before merging

@floatingIce91 floatingIce91 merged commit 9a0eb39 into main Jun 30, 2025
2 checks passed
@floatingIce91 floatingIce91 deleted the feature/stageTool branch June 30, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants