Pregunta

I spent a lot of time to find out a really working solution for this problem. I read all the documents, blogs, forums and etc about this, but nothing worked. Let's go straightly to the question.

I'm using BitNami Redmine Stack, and I wanted to prepare a totally free helpdesk on redmine. As you know, redmine can originally create issue by email (in my case Gmail). Someone (let's say a customer) sends an email to redmine stack and declares an issue that need to be fixed by the support team. Then support team could see all the issues reported by customers and begin the fixing workflow. This way the customer will be informed about the updates for tissue and how the process is going forward

¿Fue útil?

Solución

I used this article originally to solve the problem, but I changed some parts as needed. Here are the steps:

1. Create the Customer role and set the permissions
Sign in to Redmine as Administrator and go to the Administration > Roles and permissions > New role. Name it Customer, uncheck "Issues can be assigned to this role" and for Issue visibility select "Issues created by or assigned to the user".

Now in permission section, check the Issue tracking > Add Issue.

2. Create Redmine User for issues creation
Go to Administration > Users > New user and create an account, use the email of the customer here. Then go back to "Users", choose the user, go to Projects tab. In the "New project" panel, select the project, check the Customer role and click add.

3. You need a Gmail account for Redmine
Customers will send their mails to this Gmail address (let's call it redmine.YourCompanyName@gmail.com). Then we fetch mails and create issues in Redmine. So, go to Gmail settings and enable IMAP (cause we use IMAP)

4. Get the CACert.pem
Get the cacert.pem file from here and put it somewhere inside Redmine installation folder (I put it inside "C:\BitNami\redmine-2.3.1-1\apps\redmine\htdocs\cert.pem").

5. Now the script to fetch mails and create issues
Go to the directory that Redmine is installed. Then go to apps > redmine > htdocs (mine is "C:\BitNami\redmine-2.3.1-1\apps\redmine\htdocs\"), hold Shift key, right click and select "Open command window here". Now run this script in command window:

rake redmine:email:receive_imap unknown_user=accept no_permission_check=1 RAILS_ENV="production" host=imap.gmail.com port=993 username=redmine.YourCompanyName@gmail.com password=YourGmailPassword ssl=1 project=YourProject 
set SSL_CERT_FILE=C:\BitNami\redmine-2.3.1-1\apps\redmine\htdocs\cert.pem

This script fetches mails in your Gmail account (redmine.YourCompanyName@gmail.com) and creates issues in Redmine. You may run this script periodically, so you could do it manually or create a job for it (i.e. a task in Task Scheduler)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top