Issues and pull requests / Issues
Move an issue to another repository
A bug report landed in the wrong repository of your team. Move the issue with its comments, so that the people of the right repository see it.
2 min read
You need write access to both repositories: the write, maintain or admin role.
1. Move the issue
- Open the issue.
- In the sidebar, click Transfer issue.
- In Repository, pick the repository. The list shows the other repositories of the same owner that you can write to.
- Click Transfer issue.
The forge then opens the issue at its new place.
In a terminal, run:
src issue transfer 12 acme/docs
src prints the URL of the issue at its new place.
2. Check what moved
These move with the issue:
- The comments.
- The labels whose names the other repository has.
- The assignees who can read the other repository.
The issue gets a new number in the other repository. Its old link and its old number lead to the new place, for each person who can read it there.
What the forge does not move
- An issue to a repository of another owner.
- An issue from a private repository to a public repository.
- A pull request.
- An issue that screening holds, or an issue that syncs with GitHub.
Done
- The moved issue opens at its new place, also from its old link.
- The timeline of the issue shows who moved it.
Later: REST and MCP
An agent or a script moves an issue with the same rules. The REST path is under /api/v1/repos/{owner}/{repo}.
| You want to | REST | MCP tool |
|---|---|---|
| Move an issue | POST /issues/{n}/transfer, with { "repo": "acme/docs" } | transfer_issue |
After a move, GET /issues/{n} at the old place answers 301 with the new place. Use the REST API has the other routes.