Статьи с тэгом :
Закрыть
История изменений
Закрыть
Попробовать в облаке
Попробовать в облаке
Справочный центр
Интеграция

About the ONLYOFFICE and Redmine integration

ONLYOFFICE offers an official connector to integrate ONLYOFFICE Docs with Redmine to collaborate on office documents attached to the following Redmine modules: Issues, Files, Documents, Wiki, and News. You can download the ONLYOFFICE connector from the Redmine Marketplace or the ONLYOFFICE GitHub page. The application is distributed under the Apache license.

Main features

  • Viewing and editing text documents, spreadsheets, and presentations from the Redmine modules depending on the user access rights.
  • Creating and filling out online forms.
  • 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 and editing: DOCX, DOCXF, PPTX, XLSX
  • For filling forms: OFORM
  • For viewing: DOC, DOCX, DOCM, DOT, DOTX, DOTM, ODT, FODT, OTT, RTF, TXT, HTML, HTM, MHT, XML, PDF, DJVU, FB2, EPUB, XPS, XLS, XLSX, XLSM, XLT, XLTX, XLTM, ODS, FODS, OTS, CSV, PPS, PPSX, PPSM, PPT, PPTX, PPTM, POT, POTX, POTM, ODP, FODP, OTP.

What's new in version 1.0.0

Added

  • The plugin configuration page
  • The ability to co-edit docx, docxf, xlsx, pptx files
  • The ability to customize the appearance of the document editor
  • The ability to return to the page with the file from the document editor
  • ONLYOFFICE favicons on browser tabs
  • Detecting a mobile browser

The full change log is available here.

Connecting ONLYOFFICE Docs to Redmine

Requirements

  • ONLYOFFICE Docs version 6.4 and later

    You need an instance of ONLYOFFICE Docs that is resolvable and connectable both from Redmine and any end clients. It must be able to POST to Redmine directly.

    Please refer to the official documentation page to learn more about installing ONLYOFFICE Docs.

    You can also use ONLYOFFICE Docs Cloud (SaaS version).

  • Redmine v4.0.0. If you're new to Redmine, install it following these instructions.
  • ONLYOFFICE connector v1.0.0 for Redmine

Installing the ONLYOFFICE connector for Redmine

  1. Download the ONLYOFFICE integration plugin for Redmine. There are several ways to do that:
    1. Download the latest archived version from the Redmine Marketplace.
    2. Download the latest archived version from the ONLYOFFICE GitHub page:
      wget https://github.com/ONLYOFFICE/onlyoffice-redmine/archive/refs/tags/v1.0.0.tar.gz

      Unzip the archive:

      tar -xvzf v1.0.0.tar.gz
    3. Clone the master branch:
      git clone https://github.com/ONLYOFFICE/onlyoffice-redmine
    The plugin sub-directory must be named as onlyoffice_redmine. Rename the cloned onlyoffice-redmine or unzipped onlyoffice_redmine-x.y.z folder to onlyoffice_redmine.
    mv onlyoffice-redmine onlyoffice_redmine
    mv onlyoffice-redmine-1.0.0 onlyoffice_redmine

    Before installing the plugin, make sure that the Redmine instance is stopped.

  2. Put the onlyoffice_redmine plugin directory into the plugins directory, e.g:
    cp -r /root/onlyoffice_redmine/. /redmine/plugins/onlyoffice_redmine
    The path to the plugins directory may differ depending on your Redmine installation options. You can use the find / -type d -name plugins command to find the path.
  3. Go to the Redmine’s root directory:
    cd redmine
  4. Install dependencies:
    bundle install
  5. Initialize/Update the database:
    RAILS_ENV=production bundle exec rake db:migrate
    RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=onlyoffice_redmine
  6. Restart the Redmine instance.

Configuring the ONLYOFFICE connector for Redmine

Go to the Administration panel -> Plugins, find the ONLYOFFICE integration plugin for Redmine and click Configure. Specify the following parameters:

  • Document Editing Service address - enter the URL address and port where ONLYOFFICE Docs is installed (e.g. https://documentserver:8080). This field is obligatory.
    ImportantThe address of ONLYOFFICE Docs must be accessible from Redmine, as well as the address of Redmine must be accessible from ONLYOFFICE Docs.
  • Secret key - specify the 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 Redmine 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 Redmine integration section of this article.
  • Check the following customization settings if necessary:
    • Display the Chat menu button.
    • Display the header in a more compact way.
    • Display the Feedback & Support menu button.
    • Display the Help menu button.
    • Display the monochrome toolbar header.

Click the Apply button at the bottom to save changes.

ONLYOFFICE_configure ONLYOFFICE_configure

Enabling JWT for the ONLYOFFICE and Redmine 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

  1. 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"
            }
          }
        }
      }
    }
    
  2. 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
  3. 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
  4. If you make changes, save them and restart the services for the config changes to take effect.
    supervisorctl restart all

Step2: 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.

Start using ONLYOFFICE Docs within Redmine

All file changes are saved in the original file.

Changing permissions

Please note that available file actions (viewing or editing) for each particular module depend on the permissions of the user role.

Go to Administration -> Roles and permissions, choose the necessary role in the list, check/uncheck the necessary permissions and click Save.

You can refer to the official Redmine documentation for more details.

Viewing and editing files

Issues module

To open the files attached to issues or to issue comments in the corresponding editor, click the ONLYOFFICE icon Edit in ONLYOFFICE / Open in ONLYOFFICE button to the right of the file name.

The ability to edit documents is available for user roles with the Edit issues permission.

The ability to open files for viewing is available for user roles with the View issues permission.

Issues module Issues module
Files module

Files are available for viewing only and exclusively to the users with View files or Manage files permissions. To open a file in the corresponding editor, click the ONLYOFFICE icon Open in ONLYOFFICE button to the right of the file name.

Issues module Issues module
Documents module

To open files in the corresponding editor, click the ONLYOFFICE icon Edit in ONLYOFFICE / Open in ONLYOFFICE button to the right of the file name.

The ability to edit documents is available for user roles with the Edit documents permission.

The ability to open files for viewing is available for user roles with the View documents permission.

Issues module Issues module

To create a form, click the Create in ONLYOFFICE link and choose the Form Template option.

create a form create a form

Fill in the required fields and click Create.

To learn more about forms please read the corresponding articles for creating and filling out forms.
Wiki module

To open files in the corresponding editor, click the ONLYOFFICE icon Edit in ONLYOFFICE / Open in ONLYOFFICE button to the right of the file name.

The ability to edit documents is available for user roles with the Edit Wiki pages permission.

The ability to open files for viewing is available for user roles with the View Wiki permission.

Issues module Issues module
News module

To open files in the corresponding editor, click the ONLYOFFICE icon Edit in ONLYOFFICE / Open in ONLYOFFICE button to the right of the file name.

The ability to edit documents is available for user roles with the Edit news permission.

The ability to open files for viewing is available for user roles with the View news permission.

Issues module Issues module
Скачать Лучшие редакторы на вашем сайте Совместно просматривайте и редактируйте
все типы текстовых файлов, таблиц и презентаций
Вас также может заинтересовать:
Закрыть