Jira ONLYOFFICE integration app
This app enables users to edit office documents from Jira Software using ONLYOFFICE Docs.
- Currently, the following document formats can be edited: DOCX, XLSX, PPTX.
- The following formats are available for viewing: DOC, DOCM, DOC, DOTX, DOTM, ODT, FODT, OTT, RTF, TXT, HTML, HTM, MHT, PDF, DJVU, FB2, EPUB, XPS, XLS, XLSM, XLTZ , XLTX, XLTM, ODS, FODS, OTS, CSV, PPS, PPSX, PPSM, PPT, PPTM, POT, POTX, POTM, ODP, FODP, OTP.
- The plugin will create a new Edit in ONLYOFFICE menu option within the document library for Office documents.
This allows multiple users to collaborate in real time and to save back those changes to Jira.
Installing ONLYOFFICE Docs
You will need an instance of ONLYOFFICE Docs (Document Server) that is resolvable and connectable both from Jira and any end clients.
If that is not the case, use the official ONLYOFFICE Docs documentation page.
ONLYOFFICE Docs must also be able to POST to Jira directly.
The easiest way to start an instance of ONLYOFFICE Docs is to use Docker.
Installing Jira ONLYOFFICE integration app
Upload the compiled target/onlyoffice-jira-app.jar to Jira on the Manage apps page.
The latest compiled package files are available here
and on Atlassian Marketplace.
You can also install the app from the Jira administration panel:
- Navigate to the Manage apps page.
- Click Find new apps on the left-side panel.
- Locate ONLYOFFICE Connector for Jira using search.
- Click Install to download and install the app.
Configuring Jira ONLYOFFICE integration app
Find the uploaded app on the Manage apps page. Click Configure and enter the name of the server with ONLYOFFICE Docs installed:
where the documentserver is the name of the server with the ONLYOFFICE Docs installed.
The address must be accessible for the user browser and from the Jira server.
The Jira server address must also be accessible from ONLYOFFICE Docs for correct work.
Enter the Secret key to enable JWT protection of your documents from unauthorized access (further information can be found here).
Sometimes your network configuration might not allow the requests between Jira and ONLYOFFICE Document Server using the public addresses.
The Advanced server settings section allows you to set the ONLYOFFICE Document Server address for internal requests from Jira
and the returning Jira address for internal requests from ONLYOFFICE Document Server.
Compiling Jira ONLYOFFICE integration app
If you plan to compile the Jira 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.
- Compile package:
Using Jira ONLYOFFICE integration app
With the ONLYOFFICE integration app, you can view, edit and co-author office files attached to tasks right within your Jira dashboard.
To edit documents, click the ONLYOFFICE Docs icon next to the name of an attachment - the corresponding online editor will be opened in a new tab.
After the editing session, a document with all the changes will be saved as a new attachment. You will recognize it by the name with a postfix.
If you are editing an attachment collaboratively, the changes are saved in the same file version after the last user quits the editor.
How it works
- User navigates to the Jira attachments and selects the Edit in ONLYOFFICE action.
- Jira makes a request to OnlyOfficeEditorServlet (URL of the form: /plugins/servlet/onlyoffice/doceditor?attachmentId=$attachment.id).
- Jira sends the document to ONLYOFFICE Document storage service and receives a temporary link.
Jira 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 informs 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).
- Jira takes this object and constructs a page from a freemarker template, filling in all of those values so that the client browser can load up the editor.
- Then ONLYOFFICE Docs downloads the document from document storage 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 the callback URL letting Jira know that the clients have finished editing the document and closed it.
- Jira downloads a new version of the document, replacing the old one.
Download the Jira ONLYOFFICE integration app here.