Skip to content

JetBrains/space-documents-import

Repository files navigation

Import Documents into Space 🚀

This application imports documents from an external systems into JetBrains Space.

Here you can find a list of supported import sources and sample code.

Execution examples

From Confluence

$ docker run --rm -it \
        public.registry.jetbrains.space/p/space/containers/space-documents-import confluence \
        --confluence-url https://<confluenceHost> \
        --confluence-space-key "<spaceKey>" \
        --confluence-username <confluenceUsername> \
        --confluence-password <confluencePassword> \
        --space-server https://<domain>.jetbrains.space \
        --space-project-key <spaceProjectKey> \
        --space-token <spaceAccessToken>

From folder with files

$ docker run --rm -it \
        -v <localFolderPath>:/root/documents \
        public.registry.jetbrains.space/p/space/containers/space-documents-import folder \
        --folder /root/documents \
        --space-server https://<domain>.jetbrains.space \
        --space-project-key <spaceProjectKey> \
        --space-token <spaceAccessToken>

As a spaceAccessToken you could use either personal access token or application permanent token.

Build and Run Locally

With Docker

docker build . -t space-documents-import
docker run space-documents-import ...

Without Docker

./gradlew jar  # prepare fat jar
java -jar build/libs/space-documents-import.jar # run from jar with arguments

Contributors

Pull requests are welcome! 🙌