Skip to content

SolidCharity/taiga-email-tickets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating tickets in Taiga via E-Mail

Purpose

Your clients send their requests to a specified mailbox.

This script will collect the emails and add them as a ticket to specified projects.

License

This script is licensed under the BSD 3-Clause License.

Setup

First clone this repository:

git clone https://github.com/SolidCharity/taiga-email-tickets.git
cd taiga-email-tickets

You must copy the .env.sample file, and call it .env.

cp .env.sample .env

Then you edit the file and add the credentials for your IMAP folder, and for a Taiga user.

It is recommended that you create a specific user, eg. called TaigaEmail, and make this part of the projects you want to be served with this script.

The name before the @ character in the email address must be the name or slug of the project.

You can forward e-mails from multiple addresses to one single mailbox, and the recipient address will still send the tickets to separate projects.

For the setup of this script, follow these steps:

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

You must configure a cronjob for this script to be run regularly (every 2 minutes):

*/2 * * * * cd $HOME/taiga-email-tickets && ./.venv/bin/python3 import_tickets.py >/dev/null 2>&1

References

We are using python-taiga: https://python-taiga.readthedocs.io/en/latest/

See also the Taiga API: https://docs.taiga.io/api.html

About

Collect E-Mails from IMAP and create tickets in Taiga

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages