I am trying to import and add history entries and comments for existing issues through JSON. I know how to properly write JSON for history and comments, but struggle with referencing the existing issues.
I thought, the JSON file would simply reference the existing issue's key:
{
"projects": [
{
"key": "PRJ",
"issues": [
{
"key": "PRJ-222",
"history": [ ... ],
"comments": [ ... ]
}
]
}
]
}However, importing this fails claiming that no summary is set. If I provide the existing summary in the JSON file, then the import succeeds, but clears all other fields in the issues (such as fixVersion, components, etc.).
How do I correctly import and add the elements without overwriting the issue?