[solved] Pending Time changes at Agent response

Moderator: crythias

Locked
hcc
Znuny newbie
Posts: 15
Joined: 13 Sep 2012, 09:16
Znuny Version: 3.1.4

[solved] Pending Time changes at Agent response

Post by hcc »

Hello all.
I have some ticket in pending state with certain pending date (set as deadline). When I send response to Client, ticket's pending time changes to default (for a 24 hours), even if next state isn't defined.

Image

Is this a bug or this behaviour can be configured?

Thanks.
Last edited by hcc on 21 Sep 2012, 15:43, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Pending Time changes at Agent response

Post by jojo »

is it also set to the new value? Typically there needs to be a next state on submitting this template
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
hcc
Znuny newbie
Posts: 15
Joined: 13 Sep 2012, 09:16
Znuny Version: 3.1.4

Re: Pending Time changes at Agent response

Post by hcc »

jojo wrote:Typically there needs to be a next state on submitting this template
Yes, it is. But I need to preserve the current state with it's pending time as is. And also I need a possibility to change the state to another if required. Is this possible?

P.S. Default state for response was deactivated by unchecking option Ticket::Frontend::AgentTicketCompose###StateDefault (Ticket -> Frontend::Agent::Ticket::ViewCompose)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Pending Time changes at Agent response

Post by crythias »

hcc,

I believe you're trying to use this as a calendar, and it's more designed to remind you to reply. Since you are replying within the pending time, you have interrupted the "pending" flow: You are fulfilling the requirements of what OTRS means by pending: "Awaiting something to happen." Now it is happening. The pending state isn't valid.
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
hcc
Znuny newbie
Posts: 15
Joined: 13 Sep 2012, 09:16
Znuny Version: 3.1.4

Re: Pending Time changes at Agent response

Post by hcc »

I want to use this pending time as a deadline indicator. I know it is not natural but it's almost what I want :-)
Pending time changes on Agent response only. Adding note doesn't change pending time (if next state isn't chosen). Client's incoming message doesn't change pending time too.
Can I somehow edit an agent response template to disable the setting of pending time? I mean Kernel/Output/HTML/Standard/AgentTicketForward.dtl file, if I'm not mistaken. Either disable it in Kernel/Modules/AgentTicketForward.pm somehow.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Pending Time changes at Agent response

Post by crythias »

hcc wrote:I want to use this pending time as a deadline indicator.
Create a Dynamic Field with date type and use that.
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
hcc
Znuny newbie
Posts: 15
Joined: 13 Sep 2012, 09:16
Znuny Version: 3.1.4

Re: Pending Time changes at Agent response

Post by hcc »

As for now, ticket changes it's state to "Unsolved" when deadline date is reached.
Can I do the same with dynamic field?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Pending Time changes at Agent response

Post by crythias »

hcc wrote:As for now, ticket changes it's state to "Unsolved" when deadline date is reached.
Can I do the same with dynamic field?
You might try using the generic agent
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
hcc
Znuny newbie
Posts: 15
Joined: 13 Sep 2012, 09:16
Znuny Version: 3.1.4

Re: Pending Time changes at Agent response

Post by hcc »

crythias wrote:You might try using the generic agent
Unfortunately, it cannot help with the dynamic fields processing.

P.S. Maybe it's real with some custom "hand-made" modules, but out-of-the-box I guess not.
hcc
Znuny newbie
Posts: 15
Joined: 13 Sep 2012, 09:16
Znuny Version: 3.1.4

Re: Pending Time changes at Agent response

Post by hcc »

My problem solved by commenting a respective code block in Kernel/Modules/AgentTicketCompose.pm

Code: Select all

        # set pending time
        #elsif ( $StateData{TypeName} =~ /^pending/i ) {
        #    $Self->{TicketObject}->TicketPendingTimeSet(
        #        UserID   => $Self->{UserID},
        #        TicketID => $Self->{TicketID},
        #        Year     => $GetParam{Year},
        #        Month    => $GetParam{Month},
        #        Day      => $GetParam{Day},
        #        Hour     => $GetParam{Hour},
        #        Minute   => $GetParam{Minute},
        #    );
        #}
Yes, it's dirty but it works.
Sending an Agent response doesn't broke a pending time now. And there is possibility to change the state to another.

P.S. Sorry for my English. I consider issue solved.
gjs
Znuny newbie
Posts: 8
Joined: 13 Apr 2012, 09:26
Znuny Version: 3.1.3
Real Name: Frans Stekelenburg
Company: NetDialog

Re: [solved] Pending Time changes at Agent response

Post by gjs »

Maybe dirty, but a solution to issue I also was faced with.

Actually would be nice if someone could add to your solution a condition (IF):
if current pending time has expired (older than now()) OR is expiring withing 24 hours THEN set a new PendingTime.

IF Pendingtime already set is >= 24h in the future, it should remain as it is.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [solved] Pending Time changes at Agent response

Post by crythias »

Other options:
1) Split the ticket to hold a "permanent" deadline
2) use SLA for queue or Service to determine the deadline (best option).
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
Locked