RT3 approvals system

I’m having a little trouble setting it up. I have the General Queue set
up as follows:

On Create Create Tickets with template codereview

===Create-Ticket: codereview
Depended-On-By: {$Tickets{‘TOP’}->Id}
Queue: ___Approvals
Type: Approval
Content: Someone has created a ticket, you should review and approve it,
so they can finish their work
ENDOFCONTENT

In the debug below I create ticket 8 which creates approval 9. 9 is
supposed to be depended on by 8, but the link can’t be created because (I
think) ticket 8 doesn’t really exist yet (it’s not created until after
the scrip)… I thought the dependency fields were delayed so as to get
aroudn this problem? Is something broken in RT3 (3.0.3 BTW) or am I doing
something wrong? Thanks,

-=| Ben

[Mon Jul 7 13:16:57 2003] [warning]: Cannot Encode::Guess; fallback to
iso-8859-1 (/usr/local/rt3devel/lib/RT/I18N.pm:352)
[Mon Jul 7 13:16:57 2003] [debug]: Converting ‘iso-8859-1’ to ‘utf-8’
(/usr/local/rt3devel/lib/RT/I18N.pm:189)
[Mon Jul 7 13:16:57 2003] [info]: rt-3.0.3-8-34.10.4594274203132@xxxxx
#8/34 - Scrip 2 (/usr/local/rt3devel/lib/RT/Action/SendEmail.pm:91)
[Mon Jul 7 13:16:57 2003] [info]: rt-3.0.3-8-34.10.4594274203132@xxxxx
sent To: xxxxx Cc: Bcc:
(/usr/local/rt3devel/lib/RT/Action/SendEmail.pm:296)
[Mon Jul 7 13:16:58 2003] [info]: rt-3.0.3-8-34.8.55671837414022@xxxxx
#8/34 - Scrip 3 (/usr/local/rt3devel/lib/RT/Action/SendEmail.pm:91)
[Mon Jul 7 13:16:58 2003] [info]: rt-3.0.3-8-34.8.55671837414022@xxxxx
No recipients found. Not sending.
(/usr/local/rt3devel/lib/RT/Action/SendEmail.pm:251)
[Mon Jul 7 13:16:58 2003] [debug]: Workflow: processing codereview of
RT::Ticket=HASH(0x9c83b78)
(/usr/local/rt3devel/lib/RT/Action/CreateTickets.pm:338)
[Mon Jul 7 13:16:58 2003] [debug]: Workflow: evaluating
Depended-On-By: {$Tickets{‘TOP’}->Id}
Queue: ___Approvals
Type: Approval
Content: Someone has created a ticket, you should review and approve it,
so they can finish their work
ENDOFCONTENT
(/usr/local/rt3devel/lib/RT/Action/CreateTickets.pm:348)
[Mon Jul 7 13:16:58 2003] [debug]: Workflow: yielding
Depended-On-By: 8
Queue: ___Approvals
Type: Approval
Content: Someone has created a ticket, you should review and approve it,
so they can finish their work
ENDOFCONTENT
(/usr/local/rt3devel/lib/RT/Action/CreateTickets.pm:355)
[Mon Jul 7 13:16:58 2003] [info]: Ticket 9 created in queue
‘___Approvals’ by RT_System
(/usr/local/rt3devel/lib/RT/Ticket_Overlay.pm:608)
[Mon Jul 7 13:16:58 2003] [debug]: Assigned codereview with 9
(/usr/local/rt3devel/lib/RT/Action/CreateTickets.pm:468)
[Mon Jul 7 13:16:58 2003] [debug]: Handling links for 9
(/usr/local/rt3devel/lib/RT/Action/CreateTickets.pm:476)
[Mon Jul 7 13:16:58 2003] [debug]: Skipping DependedOnBy link for 8
(non-existent) (/usr/local/rt3devel/lib/RT/Action/CreateTickets.pm:485)
[Mon Jul 7 13:16:58 2003] [debug]: Handling postponed actions for
RT::Ticket=HASH(0x9b1ffdc)
(/usr/local/rt3devel/lib/RT/Action/CreateTickets.pm:506)
[Mon Jul 7 13:16:58 2003] [info]: Ticket 8 created in queue ‘General’ by
bcg2 (/usr/local/rt3devel/lib/RT/Ticket_Overlay.pm:608)

===Create-Ticket: codereview
Subject: Code review for {$Tickets{‘TOP’}->Subject}
Depended-On-By: {$Tickets{‘TOP’}->Id}
Queue: ___Approvals
Type: Approval
Content: Someone has created a ticket, you should review and approve it,
so they can finish their work
ENDOFCONTENT

That is a faq. You want:

Depended-On-By: TOP

Instead of its Id.

Thanks,
/Autrijus/

That is a faq. You want:

Depended-On-By: TOP

Instead of its Id.

Thanks - that did the trick.
I couldn’t find an online FAQ, find it in the lists or on google… perhaps
my searching skills need some adjustment (though now I see your message on
6/9) …

The POD and the RT3 manual (I realize the manual is draft/old) need
updating as that’s where I got the incorrect information from (it’s
incorrect in a few other places RE: approvals but I managed to figure that
out)

Regards,

-=| Ben

The POD has been fixed. it may not make it into 3.0.4, but it’ll be in
soon after that if not.On Mon, Jul 07, 2003 at 10:00:29AM -0500, ben@atomicmatrix.net wrote:

That is a faq. You want:

Depended-On-By: TOP

Instead of its Id.

Thanks - that did the trick.
I couldn’t find an online FAQ, find it in the lists or on google… perhaps
my searching skills need some adjustment (though now I see your message on
6/9) …

The POD and the RT3 manual (I realize the manual is draft/old) need
updating as that’s where I got the incorrect information from (it’s
incorrect in a few other places RE: approvals but I managed to figure that
out)

Regards,

-=| Ben


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.