| list_projectsA | List accessible Redmine projects. Args:
limit: Maximum number of projects to return (default: 25, max: 100)
offset: Offset for pagination (default: 0)
Returns:
Dictionary containing:
- projects: List of projects with their details (id, name, identifier, description, status, etc.)
- total_count: Total number of accessible projects
- limit: Current limit value
- offset: Current offset value
|
| get_projectB | Get detailed information about a specific project. Args:
project_id: The ID (numeric) or identifier (string) of the project to retrieve
Returns:
Dictionary containing detailed project information including
trackers, issue categories, and other metadata
|
| searchA | Search across Redmine resources using the Search API. Args:
q: Search query string (required)
issues: Include issues in search results
projects: Include projects in search results
wiki_pages: Include wiki pages in search results
news: Include news in search results
documents: Include documents in search results
changesets: Include changesets in search results
messages: Include messages in search results
scope: Search scope - 'all', 'my_project', or 'subprojects' (default: 'all')
limit: Maximum number of results (default: 25, max: 100)
offset: Pagination offset (default: 0)
Returns:
Dictionary containing:
- results: List with id, title, type, url, description, datetime
- total_count: Total number of results
- limit: Current limit value
- offset: Current offset value
Note:
Uses Redmine Search API (Redmine 3.3+, Alpha status).
If no resource types specified, searches all types.
Example:
# Search projects only
search(q="ERP", projects=True)
# Search issues and projects
search(q="bug", issues=True, projects=True)
|
| get_issueA | Get detailed information about a specific issue (ticket). Args:
issue_id: The ID of the issue to retrieve
include_journals: Include comment/change history (default: False).
WARNING: Can be very large as it contains full old/new values
for every field change including description edits.
include_children: Include child issues/subtasks (default: False)
include_attachments: Include attachment list (default: True)
include_relations: Include related issues (default: True)
Returns:
Dictionary containing detailed issue information including
journals (comments), attachments, and relations
|
| list_issuesA | Search and list issues (tickets) with various filters. Args:
project_id: Filter by project ID (numeric) or project identifier (string) (optional)
tracker_id: Filter by tracker ID (optional)
status_id: Filter by status - "open", "closed", or "*" for all (default: "*")
assigned_to_id: Filter by assigned user ID (optional)
priority_id: Filter by priority ID (optional)
limit: Maximum number of issues to return (default: 25, max: 100)
offset: Offset for pagination (default: 0)
minimal_output: Return minimal issue information (default: True).
When True, returns only id, subject, status, priority, assigned_to, and project.
When False, returns full issue details from Redmine API.
Returns:
Dictionary containing list of issues, total count, and pagination info
|
| create_issueA | Create a new issue (ticket) in Redmine. Args:
project_id: Project ID (numeric) or project identifier (string) (required)
subject: Issue subject/title (required)
description: Issue description (optional)
tracker_id: Tracker ID (optional, uses project default if not specified)
status_id: Status ID (optional)
priority_id: Priority ID (optional)
assigned_to_id: Assigned user ID (optional)
category_id: Category ID (optional)
fixed_version_id: Target version ID (optional)
parent_issue_id: Parent issue ID for subtasks (optional)
start_date: Start date in YYYY-MM-DD format (optional)
due_date: Due date in YYYY-MM-DD format (optional)
estimated_hours: Estimated hours as float (optional)
done_ratio: Progress percentage 0-100 (optional)
is_private: Whether the issue is private (optional)
watcher_user_ids: List of user IDs to add as watchers (optional, requires Redmine 2.3.0+)
custom_fields: List of custom field dictionaries with 'id' and 'value' keys (optional)
uploads: List of file uploads to attach. Each upload should be a dictionary with:
- token: Upload token from upload_attachment() (required)
- filename: Filename to use in Redmine (required)
- content_type: MIME type (optional, e.g., "application/pdf")
- description: File description (optional)
Returns:
Dictionary containing the created issue information including its ID.
If Redmine silently ignored some of the requested fields (workflow or
permission restrictions), the response contains a "warnings" list
describing them. In that case the issue WAS created - do NOT retry
creation; use update_issue to fix the remaining fields instead.
|
| update_issueA | Update an existing issue (ticket). DESCRIPTION UPDATES - two approaches (mutually exclusive, do NOT provide both):
- description: Replace the entire description with new text.
- description_patches: Apply targeted find-and-replace edits to the existing description.
Format: [{"old_text": "text to find", "new_text": "replacement"}]
Optional "replace_all": true to replace all occurrences (default: false).
Args:
issue_id: Issue ID to update (required)
project_id: Project ID (numeric) or identifier (string) to move the issue to another project (optional)
subject: New subject/title (optional)
description: New description - replaces entire content (optional).
Cannot be used together with description_patches.
description_patches: List of find-and-replace edits for the existing description (optional).
Each dict: {"old_text": "text to find", "new_text": "replacement"}.
Optional "replace_all": true to replace all occurrences (default: false).
Example: [{"old_text": "Status: Draft", "new_text": "Status: Final"}]
IMPORTANT: Use get_issue() first to see exact current content before constructing patches.
Cannot be used together with description.
tracker_id: New tracker ID (optional)
status_id: New status ID (optional)
priority_id: New priority ID (optional)
assigned_to_id: New assigned user ID (optional)
category_id: New category ID (optional)
fixed_version_id: New target version ID (optional)
parent_issue_id: New parent issue ID (optional)
start_date: New start date in YYYY-MM-DD format (optional)
due_date: New due date in YYYY-MM-DD format (optional)
estimated_hours: New estimated hours as float (optional)
done_ratio: Progress percentage 0-100 (optional)
is_private: Whether the issue is private (optional)
watcher_user_ids: User IDs to add as watchers (optional; add-only,
never removes existing watchers; requires Redmine 2.3.0+)
custom_fields: List of custom field dictionaries with 'id' and 'value' keys (optional)
notes: Comment to add to the issue history (optional)
private_notes: Whether the notes are private (optional)
uploads: List of file uploads to attach. Each upload should be a dictionary with:
- token: Upload token from upload_attachment() (required)
- filename: Filename to use in Redmine (required)
- content_type: MIME type (optional, e.g., "application/pdf")
- description: File description (optional)
Returns:
Dictionary containing the updated issue (fetched back after the
update). The description is truncated in the response unless this
update changed it; use get_issue() for the full text.
Raises:
RedmineError: If Redmine silently discarded any requested field
(workflow/permission rules, e.g. a status transition not allowed
for your role). The error lists the discarded fields and, when
available, the allowed statuses.
|
| update_issue_journalA | Update the notes (comment text) of an existing issue journal (comment). Use this to edit a comment that was previously added to an issue.
Journal IDs can be found with get_issue(issue_id, include_journals=True) -
each entry in the "journals" array has an "id" field.
Args:
journal_id: The ID of the journal (comment) to update (required).
This is the journal's own ID, NOT the issue ID.
notes: The new comment text (required). Replaces the entire notes.
WARNING: An empty string deletes the journal entirely if it has
no associated field changes (Redmine behavior).
Returns:
Dictionary containing success flag, journal_id, and the new notes.
Note:
Requires Redmine 5.0+ and the "Edit notes" (or "Edit own notes")
permission.
|
| create_issue_relationA | Create a relation between two issues. Args:
issue_id: Source issue ID (required)
issue_to_id: Target issue ID to relate to (required)
relation_type: Type of relation (required). Valid values:
- "relates" - Related to
- "duplicates" - Duplicates (source duplicates target)
- "duplicated" - Duplicated by (source is duplicated by target)
- "blocks" - Blocks (source blocks target)
- "blocked" - Blocked by (source is blocked by target)
- "precedes" - Precedes (source must finish before target)
- "follows" - Follows (source starts after target finishes)
- "copied_to" - Copied to
- "copied_from" - Copied from
delay: Optional delay in days (only for "precedes" or "follows" relations)
Returns:
Dictionary containing the created relation information including relation ID
Note:
Some relation types automatically create their inverse:
- "duplicates" creates "duplicated" on the other side
- "blocks" creates "blocked" on the other side
- "precedes" creates "follows" on the other side
The Redmine REST API has no update operation for relations.
To change an existing relation, delete it with
delete_issue_relation() and create a new one.
|
| delete_issue_relationA | Delete a relation between issues. Args:
relation_id: The ID of the relation to delete (required)
Returns:
Empty dictionary on success (Redmine returns 204 No Content)
Note:
To get relation IDs, use get_issue() with the issue ID and look at
the "relations" array in the response. Each relation has an "id" field.
Relations cannot be updated; delete and re-create to change one.
|
| get_attachmentA | Get metadata about a specific attachment. Args:
attachment_id: The ID of the attachment to retrieve
Returns:
Dictionary containing attachment metadata:
- id: Attachment ID
- filename: Original filename
- filesize: File size in bytes
- content_type: MIME type of the file
- description: Optional description
- content_url: URL to download the file
- author: Author information (id, name)
- created_on: Creation timestamp
Note:
To get attachment IDs, use get_issue() which includes attachments
in the response when they exist on the issue.
|
| download_attachmentA | Download an attachment and save it to the specified path. Args:
attachment_id: The ID of the attachment to download
save_path: Absolute path where the file should be saved
Returns:
Dictionary containing:
- success: True if download succeeded
- file_path: The path where the file was saved
- filename: Original filename from Redmine
- size: File size in bytes
Note:
The parent directory will be created automatically if it doesn't exist.
The caller is responsible for validating save_path to prevent
path traversal attacks or writing to sensitive locations.
|
| upload_attachmentA | Upload a file to Redmine and get an upload token. The returned token can be used to attach the file to an issue
using create_issue() or update_issue() with the 'uploads' parameter.
Args:
file_path: Absolute path to the file to upload
filename: Optional filename to use in Redmine (defaults to the file's basename)
Returns:
Dictionary containing:
- token: Upload token to use when attaching to an issue
- filename: The filename that will be used
Example:
# Step 1: Upload the file
result = upload_attachment("/path/to/report.pdf")
token = result["token"]
# Step 2: Attach to an issue
update_issue(
issue_id=123,
uploads=[{
"token": token,
"filename": "report.pdf",
"content_type": "application/pdf",
"description": "Monthly report"
}]
)
Note:
The caller is responsible for validating file_path to prevent
unauthorized file access.
|
| update_attachmentA | Update the metadata (filename and/or description) of an attachment. The file content itself cannot be changed - delete the attachment and
upload a new file instead.
Args:
attachment_id: The ID of the attachment to update (required)
filename: New filename (optional)
description: New description (optional). Pass an empty string to
clear the description.
Returns:
Dictionary containing the updated attachment metadata.
Note:
Requires Redmine 3.4 or later.
|
| delete_attachmentA | Delete an attachment from Redmine. Args:
attachment_id: The ID of the attachment to delete
Returns:
Dictionary containing:
- success: True if deletion succeeded
- message: Confirmation message
Note:
This permanently removes the attachment from the issue.
The user must have permission to delete attachments.
|
| list_trackersA | List all available trackers (issue types). Trackers define the type of issue (e.g., Bug, Feature, Support).
Use this to get tracker IDs for creating or updating issues.
Returns:
Dictionary containing list of trackers with id, name, and description
|
| list_issue_statusesA | List all available issue statuses. Statuses define the state of an issue (e.g., New, In Progress, Resolved, Closed).
Use this to get status IDs for creating or updating issues.
Returns:
Dictionary containing list of statuses with id, name, and is_closed flag
|
| list_prioritiesA | List all available issue priorities. Priorities define the urgency of an issue (e.g., Low, Normal, High, Urgent).
Use this to get priority IDs for creating or updating issues.
Returns:
Dictionary containing list of priorities with id, name, and is_default flag
|
| list_usersA | List Redmine users. Use this to get user IDs for assigning issues.
Args:
status: User status filter (1=active, 3=locked, default: 1)
limit: Maximum number of users to return (default: 100)
Returns:
Dictionary containing list of users with id, login, firstname, lastname, and mail
|
| get_project_membersA | Get members of a specific project. Use this to see who can be assigned to issues in a project.
Args:
project_id: The ID of the project
Returns:
Dictionary containing list of project members with user and role information
|
| list_wiki_pagesB | List all wiki pages in a project. Args:
project_id: Project ID (numeric) or project identifier (string) (required)
Returns:
Dictionary containing:
- wiki_pages: List of wiki pages with title, version, created_on, updated_on
|
| get_wiki_pageA | Get a specific wiki page content. Args:
project_id: Project ID (numeric) or project identifier (string) (required)
title: Wiki page title (required)
include_attachments: Include attachment information in response (default: False)
Returns:
Dictionary containing:
- wiki_page: Page details including title, text, version, author, created_on, updated_on
- attachments: List of attachments (if include_attachments is True)
|
| get_wiki_page_versionA | Get a specific version of a wiki page. Args:
project_id: Project ID (numeric) or project identifier (string) (required)
title: Wiki page title (required)
version: Version number to retrieve (required)
Returns:
Dictionary containing the wiki page content at the specified version
Note:
Use this to view the history of a wiki page or compare versions.
|
| create_or_update_wiki_pageA | Create a new wiki page or update an existing one. CONTENT - provide exactly one of text or text_patches (mutually exclusive):
- text: Full page content. Required when creating a new page. For updates, replaces entire content.
- text_patches: Apply targeted find-and-replace edits to the existing page content.
Format: [{"old_text": "text to find", "new_text": "replacement"}]
Optional "replace_all": true to replace all occurrences (default: false).
Only works on existing pages. Cannot be used to create new pages.
METADATA-ONLY UPDATE:
For existing pages, you can update only metadata (parent_title, comments, uploads)
without providing text or text_patches.
Args:
project_id: Project ID (numeric) or project identifier (string) (required)
title: Wiki page title (required)
text: Full page content in Textile or Markdown format.
Required for creating new pages. Replaces entire content on update.
Cannot be used together with text_patches.
text_patches: List of find-and-replace edits for the existing page content.
Each dict: {"old_text": "text to find", "new_text": "replacement"}.
Optional "replace_all": true to replace all occurrences (default: false).
Example: [{"old_text": "## Old Section", "new_text": "## New Section"}]
IMPORTANT: Use get_wiki_page() first to see exact current content before constructing patches.
Cannot be used together with text. Only works on existing pages.
comments: Comment describing the change (optional)
parent_title: Title of the parent page for hierarchy (optional)
uploads: List of file uploads to attach. Each upload should be a dictionary with:
- token: Upload token from upload_attachment() (required)
- filename: Filename to use in Redmine (required)
- content_type: MIME type (optional)
- description: File description (optional)
Returns:
Dictionary containing the created/updated wiki page information
Note:
- Redmine automatically manages version history
- Use existing upload_attachment() to get upload tokens for attachments
|
| delete_wiki_pageA | Delete a wiki page. Args:
project_id: Project ID (numeric) or project identifier (string) (required)
title: Wiki page title to delete (required)
Returns:
Empty dictionary on success (Redmine returns 204 No Content)
Note:
This permanently deletes the wiki page and all its version history.
The user must have permission to delete wiki pages.
|