- Home
- Connectors
- Confluence
Confluence
About the ONLYOFFICE and Confluence integration
ONLYOFFICE offers an official connector to integrate ONLYOFFICE Docs with Confluence and edit office documents within the document library. You can install the ONLYOFFICE connector from the Atlassian Marketplace or download it from the GitHub page. Our GitHub repository includes connectors for both Confluence and Confluence Cloud. The application is distributed under the Apache license.
Main features
- Creating text documents, spreadsheets, and presentations using the New document option.
- Creating and filling out online forms.
-
Editing and viewing documents with the Edit in ONLYOFFICE option.
Confluence Cloud supports uploading and editing files.
- Co-editing documents in real-time: two co-editing modes (Fast and Strict), Track Changes, comments, and a built-in chat.
- JWT support to secure your traffic so that no one, besides the users with proper rights, can have access to your documents.
Supported formats
- For creating: DOCX, XLSX, PPTX, PDF forms
- For editing and viewing: DOCM, DOCX, PDF forms, DOTM, DOTX, HTM, POTM, POTX, PPSM, PPSX, PPTM, PPTX, XLSM, XLSX, XLTM, XLTX, XML
- For editing with possible loss of information: CSV, EPUB, FB2, HTML, ODP, ODS, ODT, OTP, OTS, OTT, RTF, TXT
-
For conversion to Office Open XML: DOC, DOCM, PDF forms, DOT, DOTM, DOTX, EPUB, FB2, FODP, FODS, FODT,
HTM, HTML, MHT, ODP, ODS, ODT, OTP, OTS, OTT, OXPS, PDF, POT, POTM, POTX, PPS, PPSM, PPSX, PPT,
PPTM, RTF, XLS, XLSM, XLT, XLTM, XLTX, XML, XPS
Confluence Cloud does not support conversion. All these formats are supported for viewing only.
- For viewing only: CSV, DJVU, DOC, DOCM, DOCX, DOT, DOTM, DOTX, EPUB, FB2, FODP, FODS, FODT, HTM, HTML, MHT, ODP, ODS, ODT, OTP, OTS, OTT, OXPS, PDF, POT, POTM, POTX, PPS, PPSM, PPSX, PPT, PPTM, PPTX, RTF, TXT, XLS, XLSM, XLSX, XLT, XLTM, XLTX, XML, XPS
Connector for Confluence: what's new in version 6.1.0
Added
- Compatibility with Confluence 9.*
Changed
- Forcesave is no longer supported
- History highlighting is no longer supported
The full change log is available here.
Connector for Confluence Coud: what's new in version 1.2.0
Added
- Creating new documents
- Added a user image in the editor
- Editing pdf
- Paste Special feature to add a link between files
Changed
- The list of supported formats is extended
The full change log is available here.
Connecting ONLYOFFICE Docs to Confluence
Requirements
-
ONLYOFFICE Document Server v7.0 (server or cloud version) or later
You need an instance of ONLYOFFICE Docs that is resolvable and connectable both from Confluence and any end clients. It must be able to POST to Confluence directly.
Please refer to the official documentation page to learn more about installing ONLYOFFICE Docs. - Confluence Data Center 7.12.0 - 8.6.0 or Confluence Server 7.12.0 - 8.6.0
- ONLYOFFICE Connector for Confluence
Installing the ONLYOFFICE connector for Confluence from the Atlassian Marketplace
You can download the latest connector version from the official Atlassian Marketplace. To do so, please follow these steps:
- Log into your Confluence instance as an administrator.
- Click the admin drop-down box and choose Manage apps. The Manage apps screen will appear.
- Click Find new apps or Find new add-ons on the left-hand side of the page.
-
Locate ONLYOFFICE Connector for Confluence via search. Results will include the add-on versions
compatible with your Confluence instance.
- Click Install to download and install your application.
- Now you can click Close in the Installed and ready to go dialog.
Or you can upload the compiled target/onlyoffice-confluence-plugin.jar to Confluence on the Manage add-ons page.
The latest compiled package files are available here and on Atlassian Marketplace.
Compiling Confluence ONLYOFFICE integration app
If you plan to compile the Confluence ONLYOFFICE integration app yourself (e.g., edit the source code and compile it afterwards), follow these steps:
-
The stable Java version is necessary for the successful build. If you do not have it installed, use the
following commands to install Open JDK 8:
sudo apt-get update sudo apt-get install openjdk-8-jdk
- Install Atlassian Plugin SDK. Installation process is described here.
-
Get a submodule:
git submodule update --init --recursive
-
Compile package:
atlas-package
Configuring the ONLYOFFICE connector for Confluence
Go to Confluence administration > Manage apps > ONLYOFFICE Connector for Confluence > Configure:
- Document Server - specify the URL address where ONLYOFFICE Docs is installed (e.g.
https://documentserver).
ImportantThe address of ONLYOFFICE Docs must be accessible from Confluence, as well as the address of Confluence must be accessible from ONLYOFFICE Docs.
- Secret key - specify the JWT secret used to sign the data.
Starting from ONLYOFFICE Docs v7.2, JWT is enabled by default and the secret key is generated automatically. You need to enable it on the Confluence side as well: find your secret key in the ONLYOFFICE Docs configuration file, then specify the same secret key in the connector settings. For more details, see the Enabling JWT for the ONLYOFFICE and Confluence integration section of this article.
Advanced server settings:
- Server address for internal requests from the Document Editing Service - address that is used to access the Confluence server from the Document Editing Service.
- Document Editing Service address for internal requests from the server - address that is used to
access the Document Editing Service from the Confluence server.
Confluence Cloud does not support configuration of advanced settings.


How it works
The ONLYOFFICE integration follows the API documented here.
- User navigates to the Confluence attachments and selects the Edit in ONLYOFFICE action.
- Confluence makes a request to OnlyOfficeEditorServlet (URL of the form: /plugins/servlet/onlyoffice/doceditor?attachmentId=$attachment.id).
- Confluence sends a document to ONLYOFFICE Document storage service and receives a temporary link.
- Confluence prepares a JSON object with the following properties:
- url - the temporary link that ONLYOFFICE Docs uses to download the document;
- callbackUrl - the URL that ONLYOFFICE Docs uses to inform about status of the document editing;
- docserviceApiUrl - the URL that the client needs to reply to ONLYOFFICE Docs (provided by the files.docservice.url.api property);
- key - the UUID to instruct ONLYOFFICE Docs whether to download the document again or not;
- title - the document title (name).
- Confluence uses this object to generate a page from a freemarker template, populating it with the provided values to enable the client browser to load the editor.
- The client browser makes a request to the JavaScript library from ONLYOFFICE Docs and sends ONLYOFFICE Docs the DocEditor configuration with the above properties.
- Then ONLYOFFICE Docs downloads the document from Confluence and the user begins editing.
- When all users and client browsers are done with editing, they close the editing window.
- After 10 seconds of inactivity, ONLYOFFICE Docs sends a POST to callbackUrl letting Confluence know that the clients have finished editing the document and closed it.
- Confluence downloads a new version of the document, replacing the old one.
Enabling JWT for the ONLYOFFICE and Confluence integration
To protect documents from unauthorized access, ONLYOFFICE editors use the JSON Web Token (JWT). The token is added in the configuration when the Document Editor is initialized and during the exchange of commands between inner ONLYOFFICE Docs services. The secret key is used to sign the JSON web token and validate the token upon the request to ONLYOFFICE Docs.
Starting from ONLYOFFICE Docs v7.2, JWT is enabled by default and the secret key is generated automatically. You need to find your secret key in the ONLYOFFICE Docs configuration file, then specify the same secret key in the connector settings.
Step 1: Find your secret key in the ONLYOFFICE Docs configuration file
-
Open the local.json file with any available text editor.
- For Linux -
/etc/onlyoffice/documentserver/local.json
- For Windows -
%ProgramFiles%\ONLYOFFICE\DocumentServer\config\local.json
-
For Docker – enter the ONLYOFFICE Docs container using the
docker exec -it <containerID> bash
command and open/etc/onlyoffice/documentserver/local.json
Alternatively, you can use the following command to find the default secret key without opening local.json:
sudo docker exec <containerID> /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json 'services.CoAuthoring.secret.session.string'
The local.json file should look like this:
{"services": {"CoAuthoring": {"token": {"enable": {"request": {"inbox": true,"outbox": true},"browser": true}},"secret": {"inbox": {"string": "yoursecret"},"outbox": {"string": "yoursecret"},"session": {"string": "yoursecret"}}}}}
- For Linux -
-
The
true
value is specified in three sections. It means that token validation is enabled.services.CoAuthoring.token.enable.browser
services.CoAuthoring.token.enable.request.inbox
services.CoAuthoring.token.enable.request.outbox
-
The automatically generated secret key is specified in three sections. You can replace the default
secret value with your own secret key. The secret key must be the same in three sections.
services.CoAuthoring.secret.inbox.string
services.CoAuthoring.secret.outbox.string
services.CoAuthoring.secret.session.string
-
If you make changes, save them and restart the services for the config changes to take effect.
supervisorctl restart all
Step 2: Specify the same secret key in the connector settings
In the connector settings, specify the same secret in the Secret key field and save the settings.
Connecting to the demo ONLYOFFICE Docs
If you want to test the ONLYOFFICE online editors within Confluence without installing ONLYOFFICE Docs:
- Go to Confluence administration > Manage apps > ONLYOFFICE Connector for Confluence > Configure.
- Tick the Connect to demo ONLYOFFICE Document Server checkbox.
- Click the Save button.
Start using ONLYOFFICE Docs within Confluence
To create a file:
- Open the page where you need to create a file.
- Click the New document button.
- Choose the needed file type.
- Enter the file name in the text field near the file type icon.
-
Click the
Save button.
The document will be opened in the ONLYOFFICE Docs editor.


To create a file preview:
- Open any Confluence page for editing.
- Click the Insert more content option.
- Choose the Other macros option.
- Select the ONLYOFFICE Preview option.
- Choose the required file on the Attachments page.
- Adjust the file preview width and height if necessary.
- Click the Insert button.


To download a file:
- Open the file context menu by clicking the arrow to the left of its name.
- Click the Download as button. The Download as with ONLYOFFICE window will open.
- Edit the File Name in the corresponding field if necessary.
- Open the Target type drop-down menu and choose the required format.
- Click the Download button.


To edit or view a document:
- Find the needed file.
- Click the Edit in ONLYOFFICE button.
The document will be opened in the ONLYOFFICE editor.
To co-edit a document, the authorized users should open the same file together.


To create a form:
- Open the page where you need to create a file.
-
Click the New document button and choose the Form option.
- Enter the file name in the text field near the file type icon.
- Select the .docx file attached to this or other pages or choose the Create from blank option.
- The form will be opened in the ONLYOFFICE Docs editor.
- Save the form as PDF to have future access to editing, revising or collaborating.
To create a fillable form and restrict file editing by other users:
- Go to the Attachments.
-
Click the Create form using ONLYOFFICE link to the right of the PDF file. The file will
be created in the Attachments section.
To fill out a form:
- Go to the Attachments.
-
Click the Fill form in ONLYOFFICE link to the right of the PDF file.
- The form will be opened in the ONLYOFFICE Docs editor.