Closed as not planned
Description
- Gitea version: 1.9.0
- Git version: 2.20.1
- Operating system: Debian Linux amd64
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
Description
Please allow creating issues through the API (POST /api/v1/repos/{user}/{repository}/issues
) with a specific issue number/index. This would allow importing issues from other issue trackers while preserving their issue numbers.
Workaround
This can also be accomplished by changing the database field directly, after the issue is created, using a query like:
UPDATE issue SET `index` = ? WHERE id = ?
…where the first parameter is the desired issue number, and the second parameter is the id
field in the JSON response from creating the issue.