jira_clone_issue
Clone a Jira issue by copying its fields into a new issue and linking it to the source, skipping fields unavailable on the target project's create screen.
Instructions
Clone an existing Jira issue by copying its fields into a new issue.
Jira does not provide a single "clone issue" REST endpoint on Data Center, Server, or Cloud. This tool reproduces the Jira UI's built-in Clone action: it fetches the source issue's fields, creates a new issue with those fields copied over (summary, description, issue type, priority, labels, components, fix/affects versions, assignee, due date, security level, environment, and populated custom fields), and links the new issue back to the source issue with a "Cloners" issue link.
Each standard and custom field is pre-verified against the target project's create screen metadata before being copied, so fields that are not available for that project/issue type are excluded individually instead of failing the whole clone. Any excluded fields are listed under "excluded_fields" in the response.
Args: ctx: The FastMCP context. issue_key: The key of the issue to clone. project_key: Optional target project key. summary: Optional summary override for the clone. include_custom_fields: Whether to copy populated custom fields. link_to_original: Whether to create a "Cloners" link back to the source issue. include_links: Whether to re-create the source issue's other issue links. additional_fields: Optional dictionary of fields to override or add.
Returns: JSON string representing the newly created clone issue. Includes an "excluded_fields" list when fields were skipped because they are not on the target create screen.
Raises: ValueError: If in read-only mode, Jira client unavailable, or the source issue/target project is invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | (Optional) Summary for the cloned issue. Defaults to 'CLONE - <source summary>', matching Jira's built-in Clone action. | |
| issue_key | Yes | The key of the issue to clone (e.g., 'PROJ-123') | |
| project_key | No | (Optional) Target project key for the clone (e.g., 'PROJ'). Defaults to the source issue's project. If the source issue is a subtask, its parent link is only preserved when cloning into the same project. | |
| include_links | No | Whether to re-create the source issue's other issue links (e.g. 'blocks', 'relates to') on the clone, preserving their type and direction relative to each linked issue | |
| link_to_original | No | Whether to create a 'Cloners' issue link between the new clone and the source issue, matching Jira's built-in Clone action | |
| additional_fields | No | (Optional) Dictionary of fields to override or add on top of the fields copied from the source issue. Example: {'priority': {'name': 'High'}} | |
| include_custom_fields | No | Whether to copy all populated custom fields from the source issue (e.g., Epic Name, Epic Link, and other customfield_* values) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |