pending auto close

Moderator: crythias

Post Reply
qnetworks
Znuny newbie
Posts: 16
Joined: 21 Oct 2010, 09:24
Znuny Version: 3.0

pending auto close

Post by qnetworks »

hi.
i have a problem with this function, it doesn't work, when the timer reach 0 the function don't change the ticket state to closed, timer continues counting in negative values (1, 0, -1, -2, -3....)
can someone help me?
thanks
OTRS 3.0
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

Has anyone found a solution for this? I am having this same problem. I am using version 3.0.3
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: pending auto close

Post by crythias »

are you using Windows?
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
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

Yes, Windows 7
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: pending auto close

Post by crythias »

Make sure cronW is running.
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
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

hey,

I did some research on my system. I'm actually running OTRS Ver. 3.0.3 on Ubuntu 11.04 with MySQL database 5.1.49. Sorry for the mix up. Cronw is not running on this Linux box for OTRS
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: pending auto close

Post by crythias »

did you change the default next status name? Are there any specific errors in the System Log?
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
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

I believe so. I have Ticket::StateAfterPending set to "Closed" and there are no syslog error message. I have setup a job in the Generic Agent but I am only able to run that manually.
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: pending auto close

Post by crythias »

do all the files in your otrs cron directory end in .dist?
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
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

Yes. All files in my Cron directory ends in .dist
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: pending auto close

Post by crythias »

copy them without the .dist
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
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

I tried that and gave it a day or so and the issue still occur. it seem as if the pending tickets are not keeping up with the time. I saw this in my otrs.pendingjobs.pl file (located in otrs/bin):


use Date::Pcalc qw(Day_of_Week Day_of_Week_Abbreviation);

# common objects
my %CommonObject;
$CommonObject{LogObject} = Kernel::System::Log->new(
LogPrefix => 'OTRS-otrs.PendingJobs.pl',
%CommonObject,
);
$CommonObject{DBObject} = Kernel::System::DB->new(%CommonObject);
$CommonObject{TicketObject} = Kernel::System::Ticket->new(%CommonObject);
$CommonObject{UserObject} = Kernel::System::User->new(%CommonObject);
$CommonObject{StateObject} = Kernel::System::State->new(%CommonObject);
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

Hey,

What are the criterias for a ticket to automatically closed? (i.e locked ticket, responsible, owner)
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: pending auto close

Post by crythias »

The criteria is set state pending auto close + or - and give it a time in the future.
If the state closed successful is renamed or the SysConfig option for next state is changed or invalid, you'd have additional problems, yet those should evidence themselves in the System log.
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
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

I believe this maybe the case. In my Core::Ticket is see this (1st attachment - Capture1.jpg)
Capture1.JPG
and in my Agent::ViewPending I see this (2nd attahcment - Capture.jpg)
Capture1.JPG
You do not have the required permissions to view the files attached to this post.
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

How can I change the States to its original options?
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: pending auto close

Post by crythias »

click the revert (little circle-arrow deal thingie) icon.
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
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: pending auto close

Post by crythias »

Also be aware that a state TYPE is not the same as a state.
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
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

Yes I am aware of that. I believe someone screwed up when the state types were changed. I clicked on the revert arrow and nothing was changed
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
Rmack09
Znuny newbie
Posts: 42
Joined: 28 Jan 2011, 15:37
Znuny Version: 3_1_3
Real Name: Mack

Re: pending auto close

Post by Rmack09 »

Is there a way to revert this entire system to default without affecting my tickets and user accts?
OTRS Ver. 3.1.3 on Ubuntu 10.04 with MySQL database 5.1.49
Post Reply