Topic Options
Rate This Topic
#136291 - 01/04/07 12:21 PM Date field
satish143 Offline
Stealth Member

Registered: 07/13/06
Posts: 132
Hi -,
I have a Date field(Expected date when the ticket is resolved) which is changed manually when an user submits a response to the request. My aim is to send an notification when the ticket is not resolved after the 2 hours of the Expected date.
Can i do this in the workflow.
$DATE$ - (Date field) > 2*60*60

Please give advise. its an urgent one to be solved.

Thanks,
Satish

Top
#136292 - 01/04/07 01:07 PM Re: Date field [Re: satish143]
Trevor Offline
Just Signed Up

Registered: 01/04/07
Posts: 2
Hi Satish,

Your qualification looks pretty good except I'd change $DATE$ to $TIMESTAMP$. Now if you leave it like that it will continue to send notifications forever. I'd add a window of 10 minutes so that it only sends one notification (and then run the escalation every 10 minutes), like:

($TIMESTAMP$ - 'Expected Date' > 2*60*60) AND ($TIMESTAMP$ - 'Expected Date' < ((2*60*60) + 600)) AND ($STATUS$ < "Resolved")

Cheers,
tkj.

Top
#136293 - 01/04/07 01:16 PM Re: Date field [Re: Trevor]
satish143 Offline
Stealth Member

Registered: 07/13/06
Posts: 132
Hi Trevor,
Thanks for your quick response. I did not get the point why you changed the $DATE$ to $TIMESTAMP$ what makes difference if i keep as $DATE$ itself because while storing in the database everyhting would be in seconds. I am using escalation Time rather than intervel so it will throw the notification only on specific timings.

($DATE$ - 'Expected Date' > 2*60*60)AND ($STATUS$ < "Resolved")

Please advise and i really appreciate your time.

Thanks,
Satish

Top
#136294 - 01/04/07 01:24 PM Re: Date field [Re: satish143]
Trevor Offline
Just Signed Up

Registered: 01/04/07
Posts: 2
Hi Satish,
You can check this but I believe $DATE$ ignores the time of day and resolves to midnight of that day.
Cheers,
Trevor.

Top
#136297 - 01/04/07 02:48 PM Re: Date field [Re: Trevor]
satish143 Offline
Stealth Member

Registered: 07/13/06
Posts: 132
Thank you Trevor.

Thanks,
Satish

Top
#136331 - 01/09/07 07:14 PM Re: Date field [Re: satish143]
satish143 Offline
Stealth Member

Registered: 07/13/06
Posts: 132
Hi all,
If i use
($TIMESTAMP$ - 'Expected Date' > 2*60*60) AND ($TIMESTAMP$ - 'Expected Date' < ((2*60*60) + 600)) AND ($STATUS$ < "Resolved")

Generally 'Expected Date' is of type date. So, this qualification would retrieve the Date from 12:00 A.M .

Please advise

Thanks,
Satish

Top
#136336 - 01/10/07 12:30 AM Re: Date field [Re: satish143]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
What do you want to do?
_________________________
Vincent.

Top
#136342 - 01/10/07 03:10 PM Re: Date field [Re: Vincent_RIEDWEG]
satish143 Offline
Stealth Member

Registered: 07/13/06
Posts: 132
My aim is to send an notification when the ticket is not resolved after the 2 hours of the Expected date.($DATE$ Type).

Thanks,
Satish

Top
#136345 - 01/11/07 01:46 AM Re: Date field [Re: satish143]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
You need to create a flag to know if the notification has already been sent. Then the qualification should be the following :

($TIMESTAMP$ - 'Expected Date' > 2*60*60) AND ($Status$ < "Resolved") AND ($Flag_Sent$ = $NULL$)

Then you send the notification and set the flag.
_________________________
Vincent.

Top
#136346 - 01/11/07 02:07 PM Re: Date field [Re: Vincent_RIEDWEG]
satish143 Offline
Stealth Member

Registered: 07/13/06
Posts: 132
Thanks vincent.

Top