You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2020-06-10 13:21:23

YakovMyagkov
Member
Registered: 2020-02-19
Posts: 8

GLPI + Redmine integration 2.0

Hello, friends, the question was raised, because I saw a similar topic, but I did not find an answer for myself. The idea is that there GLPI and RedMine, when creating a ticket in GLPI that would be exactly the same ticket with the same number opened in redmine, now came to the fact that when you open a ticket in GLPI for example, id 50, then when the email comes into RedMine, it does not create a new ticket and begins to look at the exact same tick with the same ID. I see it this way: when creating a ticket in GLPI, you don't need to assign an ID to it, but I don't understand how to do this yet. Tell me. If there are any solutions or plugins I will also be happy to find out.

Offline

#2 2020-06-10 19:15:12

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: GLPI + Redmine integration 2.0

What your environment? Redmine and GLPI runs at different servers or on same ?

Offline

#3 2020-06-10 19:22:31

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: GLPI + Redmine integration 2.0

I managed to do this integration, but I don't know if it's the same idea that you need.

First, you will need to code a php script that will communicate glpi between redmine using API services.
For that you need to define parameters that will authenticate and execute the necessary methods to carry out the call to send the data to redmine API..

On the other hand, the redmine API receives this information sent from the glpi API and inserts the information in fields defined by the redmine environment.

Offline

#4 2020-06-11 08:55:23

YakovMyagkov
Member
Registered: 2020-02-19
Posts: 8

Re: GLPI + Redmine integration 2.0

GLPI and RedMine are located on different servers and have different operating systems. GLPI - Linux 4.18.0-147.5.1.el8_1.x86_64 CentOS Linux release 8.1.1911 (Core). RedMine - Linux 3.10.0-957.21.3.el7.x86_64 CentOS Linux 7 (Core). And you can tell us about your method and share information about how you did it, I think that all the methods will be good, I honestly admit that I do not know much about php and the api.

Offline

#5 2020-06-11 16:40:46

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: GLPI + Redmine integration 2.0

Do you already used GLPI-API for consult something?

Or have some concepts about apirest.php/ ?

I think it's possible to do, even with different operating systems, it's doesn't matter in this case, only you need it's communicate API from each other. It's a big variable for each scenario because all is different. You can seize the concept only.

Offline

#6 2020-06-12 12:08:37

YakovMyagkov
Member
Registered: 2020-02-19
Posts: 8

Re: GLPI + Redmine integration 2.0

I have access to the GLPI and RedMine API, but this will only be my first experience with the API, and I haven't had any professional experience yet. About the work concept apirest.php all I know is that you can get a ticket via add item (s) URL: apirest. php/:itemtype/

Offline

#7 2020-06-13 14:59:30

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: GLPI + Redmine integration 2.0

So, you will need perform some steps to achieve this goal.

First of all, you need to know what ticket categories to filter for trigger an action. Think: only some ticket categories need goes to Redmine.

It would be good if you can set a user for this purpose, for authenticate in the API, and this user that was authenticated make the nexts calls.

Steps:
- initSession for an user.
- define a ticket criteria for filter the specific tickets to be forwarded
- select the filtered tickets and send data do Redmine api.
- Redmine receives the data, analyze the data to verify it's correctly, and Insert a task in Redmine with the fields from glpi (like content, name of the user, title, etc)
-after that, you will need create a criteria that are if a ticket already was inserted in Redmine. If yes, don't send again, else forces the ticket to be inserted in redmine

Offline

#8 2020-06-15 09:23:07

YakovMyagkov
Member
Registered: 2020-02-19
Posts: 8

Re: GLPI + Redmine integration 2.0

Dear friend, I am grateful to you, but I do not quite understand how to do it all, I am very bad at php and api, do you have the opportunity to step by step paint and perhaps show in pictures what you need to do I will be very grateful (for work I have never done this before) sad

Offline

#9 2020-06-15 10:19:51

YakovMyagkov
Member
Registered: 2020-02-19
Posts: 8

Re: GLPI + Redmine integration 2.0

The task is simplified, all tickets that are created in GLPI need to be duplicated in RedMine

Offline

#10 2020-06-15 14:36:30

mecmav
Member
From: Brasil
Registered: 2019-03-22
Posts: 326

Re: GLPI + Redmine integration 2.0

I will try to help you with this, but how I don't know anything from you environment and scenario, I will try to make simple the most as possible.

Last edited by mecmav (2021-04-06 02:13:29)

Offline

Board footer

Powered by FluxBB