Recurring Ticket

Moderator: crythias

Post Reply
VCSousa
Znuny newbie
Posts: 62
Joined: 05 Feb 2020, 17:45
Znuny Version: OTRS6
Real Name: Ruben Sousa
Company: Zolve - Logistic and Transport, S.A.

Recurring Ticket

Post by VCSousa »

Hi everyone,

I need to put my otrs creating recurring tickets. I know that I can do a cront with an email be sent but my boss don't like this solution.

So I have seen this viewtopic.php?f=53&t=32070

Can someone help me to put it working? I don't understand so much how this work.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Recurring Ticket

Post by RStraub »

You don't even need to send an email, you could also just read a template "directly" into OTRS. There are some test emails used by the framework to do so.
For example, create a cronjob:

Code: Select all

07 08 * * 1-5 $HOME/bin/otrs.Console.pl Maint::PostMaster::Read < $HOME/Custom/Mails/MailToBeProcessed.box
where the .box file could look like:

Code: Select all

From automated-tasks@YourDomain.com Fri Dec 21 23:59:24 2001
Return-Path: <noreply@YourDomain.com>
Received: (from skywalker@localhost)
    by avro.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) id f3MMSE303694
    for martin@localhost; Fri, 21 Dec 2001 23:59:24 +0200
Date: Fri, 21 Dec 2001 23:59:24 +0200
From: Automated Task Handler <noreply@YourDomain.com>
To: Valid@EmailAdressOfYourSystem.com
Subject: [Automated Task] Title here
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Please do this and that.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Post Reply