Project

General

Profile

Is Redmine ready to communicate with another Redmine?

Added by Álvaro Díaz about 6 years ago

Hello everyone. First of all congratulate you on the amazing Redmine project.

I have found a situation that I do not know how to solve or if it has a solution in the current version, I'll tell you.

In my company I have been asked to mount the Redmine server.
I have configured the server, the email notifier and a mail inbox to create requests and replies.

All this part I have not had problems and it is configured.

But we have a costumer who is also using Redmine and this situation occurs.

If costumer creates a request for example with id #120, to my Redmine a notification comes with the following subject [XXXX # 120] so that our mail handler can create the request.
As in my system the issue #120 is not created yet, Redmine thinks that it is a response to an existing issue in my system but when not finding the issue by id, do not create it.

I've been looking for the code app / models / mailhandler.rb and looking for the function "receive_issue_reply"

def receive_issue_reply (issue_id, from_journal = nil)
    issue = Issue.find_by_id (issue_id)
    return unless issue
    # check permission
    unless handler_options [: no_permission_check]
      unless user.allowed_to? (: add_issue_notes, issue.project) ||
               user.allowed_to? (: edit_issues, issue.project)
        raise UnauthorizedAction
      end
    end

I notice if the id of the issue does not exist, it does not create the issue.

My question is this:
Can Redmine collaborate with another Redmine system to create issues through email?
How can you synchronize the ids of my local issue and of the remote issue?

Thank you very much,


Replies (1)

RE: Is Redmine ready to communicate with another Redmine? - Added by Bernhard Rohloff about 6 years ago

When I understand this correctly, you get mails from a customer who also uses Redmine and creates tickets for you in his own Redmine instance. So you get emails with a Redmine ticket number in the subject which interferes with your own Redmine instance.

Can Redmine collaborate with another Redmine system to create issues through email?

The answer is no. I think the only way to get this working is to change the pattern of the issue number in the email subjects your Redmine instance creates and detects. Something like #123@MyCrazyRedmine. Then it should work fine.

How can you synchronize the ids of my local issue and of the remote issue?

Because the issue ID is automatically incremented number and unique in every instance of Redmine this is not possible at all.
Imagine the case that both of you have an issue #120, how would you synchronize this. There are some discussions about project federation but nothing is developed, yet.

    (1-1/1)