State After Pending not working

Moderator: crythias

Locked
fbiermann
Znuny newbie
Posts: 7
Joined: 14 Jul 2016, 09:50
Znuny Version: 5.0.10

State After Pending not working

Post by fbiermann »

Hello,

we have set up a new OTRS 5.0.10 System (coming from 3.5).

What we like to configure (as we had it in OTRS 3.5) is after setting a "pending reminder" state on a ticket and after the "pending reminder time" is reached to change the state of the ticket automatically to "open".

Under OTRS 3.5 this worked flawlessly.

Unfortunately I can't get it to work with OTRS 5.0.10. The "pending reminder" state is not changing after the "pending reminder time" is reached.

In my opinion the related setting is Ticket -> Core::Ticket::StateAfterPending which I already set to "open" with no success.

Any help on this matter is appreciated.

Kind regrads,
Florian Biermann
fbiermann
Znuny newbie
Posts: 7
Joined: 14 Jul 2016, 09:50
Znuny Version: 5.0.10

Re: State After Pending not working

Post by fbiermann »

Sorry for bumping this thread, but does nobody have the same issue or does someone got this configured and working?

Thank you
Eggllo
Znuny newbie
Posts: 79
Joined: 09 Jun 2016, 14:27
Znuny Version: 5.0.10

Re: State After Pending not working

Post by Eggllo »

What do you have as your key and content for Ticket::StateAfterPending?
OTRS v5.0.10 with ITSM extension.
MySQL database
Ubuntu 16.04 LTS
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: State After Pending not working

Post by reneeb »

Is your cronjob/daemon running?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
fbiermann
Znuny newbie
Posts: 7
Joined: 14 Jul 2016, 09:50
Znuny Version: 5.0.10

Re: State After Pending not working

Post by fbiermann »

@Eggllo:

As key we use the names of the "pending reminder states" (as they are in the database) an as content we use "open".

@renneb:

Yes, the cronjob/daemon is running.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: State After Pending not working

Post by reneeb »

Any messages in the logfile(s)?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
fbiermann
Znuny newbie
Posts: 7
Joined: 14 Jul 2016, 09:50
Znuny Version: 5.0.10

Re: State After Pending not working

Post by fbiermann »

Unfortunately no messages in the otrs log.

But what I have discovered now is that if I use the "pending auto close+" state (as key) and the "closed successful" state (as option) in Ticket::StateAfterPending the ticket gets "closed successful" when the pending time is reached.

For some reason the change of the state took 23 minutes after the pending time was reached.

I will try some other state constellations and see if they work or not.
fbiermann
Znuny newbie
Posts: 7
Joined: 14 Jul 2016, 09:50
Znuny Version: 5.0.10

Re: State After Pending not working

Post by fbiermann »

Ok now it is getting weird.

The only pending state that is able to change state after pending time is reached is "pending auto close+".
"pending auto close+" is able to change to all other states I configured.

All other states can't change their states after pending time reached.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: State After Pending not working

Post by crythias »

Make sure both columns contain valid states and are case sensitively spelled properly.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
fbiermann
Znuny newbie
Posts: 7
Joined: 14 Jul 2016, 09:50
Znuny Version: 5.0.10

Re: State After Pending not working

Post by fbiermann »

I double checked the entries and they are all properly spelled.

But I found a way to get it working.

What I did:

1. Sysconfig -> Core::Ticket in Ticket::PendingAutoStateType I added all the states I want to change state after pending time is reached.
2. I changed all state-types of the states from 1.) to "pending auto" from "pending reminder"

The states are changing state properly now.

Unfortunately they are only refreshed at even hours and 45 minutes (e.g. 10:45 / 12:45 / 14:45)

This interval is too long.

Any suggestions where I can adjust this interval?

Thank you!
fbiermann
Znuny newbie
Posts: 7
Joined: 14 Jul 2016, 09:50
Znuny Version: 5.0.10

Re: State After Pending not working

Post by fbiermann »

Ok I found it myself:

Sysconfig -> Daemon -> Daemon::SchedulerCronTaskManager::Task -> Daemon::SchedulerCronTaskManager::Task###TicketPendingCheck

Thank you for your help everyone.

I will mark this thread as solved.
Locked