NOTE: This page has been translated automatically from Russian to English. Original page.



Redmine - library for integration with 1C

The library, which is through the REST API interacts with Redmine. To date, the realized work projects, tasks, taking into account the time.

logo Redmine Our small team as a tracker for customer use free enough popular tracker Redmine. Why Redmine? - Because it was easier for us to place a tracker on the network than to organize access to our infrastructure and to use something based on 1s. This treatment has been written to synchronize data Redmine and 1c.

All communication with Redmine goes through REST API, a detailed description of which can be found at http://www.redmine.org/projects/redmine/wiki/Rest_api . Communication is through xml files. Analysis and formation of xml files implemented by XDTO packets. XDTO package lies in the layout and processing startup is loaded, so there is nothing to add to the configuration is not necessary. In the archive I have attached xsd scheme for those who would be interested in, and who wants to make changes to it. I recommend to view and edit the XML xsd use Studio, the Liquid.

Job processing can be described with the following scheme:

Shemma

The treatment itself has driven a form where you can see examples of the work.

Connect to Redmine

In order to connect to Redmine, you need to enable the Rest. This can be done in the Administration tab -> Settings -> Authentication tab -> tick web service REST:

Settings 1 fragment

Then, get the key of the current user under which you are logged in. You go in the "My Account". In the right pane, see your API key.

Setup 2 fragment

Data on the key server and registers in processing information.

sample code 1

After initialization of these variables, you can make requests to Redmine.

EXAMPLE data

For example, we obtain a description of the problem. In this example, the code is in the form of treatment:

sample code 2

I have a form variable NomerZadachi, contains "41", it is the task identifier in the database Redmine. In the settings, I have what I want to receive attached files, they are not issued by default. The output is a structure:

structure example

How to handle this structure we decide depending on what we do in our 1c configuration.

1C:Enterprise Developer's Community