A new status INITIALIZING_TASK
has been added to tasks when initiating Copy Page Hierarchy API. This is to prevent null values in the message field if a task is completed prior to a status being saved.
See the response of fetching long task (Line 13 is where status is being saved):
{
"id": "9535652",
"name": {
"key": "com.atlassian.confluence.api.impl.service.longtasks.BulkPageCopyTaskRunner",
"args": []
},
"elapsedTime": 3708,
"percentageComplete": 100,
"successful": true,
"finished": true,
"messages": [
{
"translation": "{\"status\":{\"key\":\"INITIALIZING_TASK\",\"translation\":null,\"args\":[\"0\"]},\"destinationId\":null,\"totalPageNeedToCopy\":3,\"errors\":[]}",
"args": []
}
],
"_links": {
"base": "",
"context": "/wiki"
}
}