Import views from Viewtracker space or global CSV export

Description

For space migration purpose, it's useful if we can import our own data format again.

Use Case
To migrate a space from instance A to instance b, the Confluence admin can use the Confluence Space export feature. This export doesn't export the related plugin data from our Viewtracker table.
This causes, that the views from instance A from the space aren't migrated to instance B.

Solution
We have already the Viewtracker space export feature, where we can export the views of a specific space or even global.

https://wiki.bitvoodoo.ch/display/BVVIEWTRACKER/Export+Viewtracker+Data#ExportViewtrackerData-CSVExport

 

If we could implement a "Viewtracker CSV Import" matching our format we can provide a migration path to the Confluence Admin.

Such an import (running in instance B) needs to do the following:

  1. Search for the new Page in instance B by the Content Title, Content-Type and the Space Key

  2. Search for the user by the Username

  3. Create a Visit  with all these objects and the given UNIX Date

Optional

If in the CSV the column Source is present, respect this too and import it.

 

Various

  • This is an admin task, which could be called in the Confluence administration

  • It's linked in the more dropdown next to export with the name "import"

  • It should run in a long-running task

  • we need to write a log if we couldn't find some users/contents mentioned in the CSV.

Environment

None

Assignee

Oliver Strässer

Reporter

sysadmin+backbone

Labels

None

Epic/Theme

None

Effort

None

Fix versions

Priority

Normal
Configure