Skip to main content
Glama
devrev

DevRev MCP Server

Official
by devrev

add_timeline_entry

Add updates or progress notes to work items and enhancements in DevRev. Use this tool to document changes, track status, and maintain project timelines.

Instructions

Add a timeline entry to a work item (issue, ticket) or part (enhancement)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe DevRev ID of the work item (issue, ticket) or part (enhancement)
timeline_entryYesThe timeline entry about updates to the work item (issue, ticket) or part (enhancement).

Implementation Reference

  • Registration of the 'add_timeline_entry' tool including its description and input schema definition.
        name="add_timeline_entry",
        description="Add a timeline entry to a work item (issue, ticket) or part (enhancement)",
        inputSchema={
            "type": "object",
            "properties": {
                "id": {"type": "string", "description": "The DevRev ID of the work item (issue, ticket) or part (enhancement)"},
                "timeline_entry": {"type": "string", "description": "The timeline entry about updates to the work item (issue, ticket) or part (enhancement)."},
            },
            "required": ["id", "timeline_entry"],
        }
    ),
  • Handler implementation for 'add_timeline_entry' tool that validates input, constructs payload, and calls the DevRev API to create a timeline entry of type 'timeline_comment' on the specified object.
    elif name == "add_timeline_entry":
        if not arguments:
            raise ValueError("Missing arguments")
    
        payload = {"type": "timeline_comment"}
    
        id = arguments.get("id")
        if not id:
            raise ValueError("Missing id parameter")
        payload["object"] = id
    
        timeline_entry = arguments.get("timeline_entry")
        if not timeline_entry:
            raise ValueError("Missing timeline_entry parameter")
        payload["body"] = timeline_entry
        
        timeline_response = make_devrev_request(
            "timeline-entries.create",
            payload
        )
        if timeline_response.status_code != 201:
            error_text = timeline_response.text
            return [
                types.TextContent(
                    type="text",
                    text=f"Create timeline entry failed with status {timeline_response.status_code}: {error_text}"
                )
            ]
        
        return [
            types.TextContent(
                type="text",
                text=f"Timeline entry created successfully: {timeline_response.json()}"
            )
        ]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devrev/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server