<div dir="ltr">Hi Kevin,<div><br></div><div>Thanks for your reply. I've test my custom lifecycle in RT web ui, it works fine.</div><div><br></div><div>For your concern, i paste my lifecycle code at below, please help to check it, thanks a lot!</div>
<div><br></div><div>File location: /etc/request-tracker4/RT_SiteConfig.pm</div><div><br></div><div>Set(%Lifecycles,</div><div><div><br></div><div> # modify the default lifecycle</div><div> crmcase => {</div>
<div> # All the appropriate ticket statuses</div><div> initial => [ 'NeedAction' ],</div><div> active => [ 'InProgress','WaitingforCustomer', 'WaitingforVendor', 'WaitingforLaunch', 'Monitoring' ],</div>
<div> inactive => [ 'Closed','Rejected' ],</div><div><br></div><div> # Default ticket statuses for certain actions</div><div> defaults => {</div><div> on_create => 'NeedAction',</div>
<div> },</div><div><br></div><div> # Status change restrictions</div><div> transitions => {</div><div> 'NeedAction' <span class="" style="white-space:pre"> </span>=> [qw(InProgress Rejected)],</div>
<div> 'InProgress' <span class="" style="white-space:pre"> </span>=> [qw(WaitingforCustomer WaitingforVendor WaitingforLaunch NeedAction Monitoring Rejected Closed)],</div><div> 'WaitingforCustomer' <span class="" style="white-space:pre"> </span>=> [qw(InProgress Rejected)],</div>
<div> 'WaitingforVendor' <span class="" style="white-space:pre"> </span>=> [qw(InProgress Rejected)],</div><div> 'WaitingforLaunch' <span class="" style="white-space:pre"> </span>=> [qw(InProgress Rejected)],</div>
<div> 'Monitoring' <span class="" style="white-space:pre"> </span>=> [qw(InProgress Closed)],</div><div><span class="" style="white-space:pre"> </span>'Closed' <span class="" style="white-space:pre"> </span>=> [qw(NeedAction)],</div>
<div><span class="" style="white-space:pre"> </span>'Rejected'<span class="" style="white-space:pre"> </span>=> [qw(NeedAction)],</div><div> },</div><div><br></div><div> # Rights for different actions</div>
<div> rights => {</div><div><br></div><div> # These rights are in the default lifecycle</div><div> '* -> Monitoring' <span class="" style="white-space:pre"> </span>=> 'Monitoring Case',</div>
<div> 'Closed,Rejected -> *' <span class="" style="white-space:pre"> </span>=> 'Reopen Case',</div><div><span class="" style="white-space:pre"> </span>'* -> Rejected'<span class="" style="white-space:pre"> </span>=> 'Reject Case',</div>
<div><br></div><div> },</div><div><br></div><div> # Actions for the web UI</div><div> actions => [</div><div> 'NeedAction -> InProgess' => {</div><div> label => 'Accept Case',</div>
<div> update => 'Comment',</div><div> },</div><div> 'InProgress -> WaitingforCustomer' => {</div><div> label => 'Waiting for Customer',</div>
<div> update => 'Comment',</div><div> },</div><div> 'InProgress -> WaitingforVendor' => {</div><div> label => 'Waiting for Vendor',</div>
<div> update => 'Comment',</div><div> },</div><div> 'InProgress -> WaitingforLaunch' => {</div><div> label => 'Waiting for Launch',</div>
<div><span class="" style="white-space:pre"> </span> update => 'Comment',</div><div> },</div><div> 'InProgress -> Monitoring' => {</div><div> label => 'Start Monitoring',</div>
<div> update => 'Comment',</div><div> },</div><div> 'WaitingforCustomer -> InProgress' => {</div><div> label => 'Receive from Customer',</div>
<div> update => 'Comment',</div><div> },</div><div> 'WaitingforVendor -> InProgress' => {</div><div> label => 'Receive from Vendor',</div>
<div> update => 'Comment',</div><div> },</div><div> 'WaitingforLaunch -> InProgress' => {</div><div> label => 'Ready for Launch',</div>
<div> update => 'Comment',</div><div> },</div><div> 'InProgress -> NeedAction' => {</div><div> label => 'Reassign Case',</div>
<div> update => 'Comment',</div><div> },</div><div><span class="" style="white-space:pre"> </span>'Monitoring -> Closed' => {</div><div><span class="" style="white-space:pre"> </span> label => 'Close Case',</div>
<div><span class="" style="white-space:pre"> </span> update => 'Comment',</div><div><span class="" style="white-space:pre"> </span>},</div><div> 'Closed -> NeedAction' => {</div>
<div> label => 'Reopen Case',</div><div> update => 'Comment',</div><div> },</div><div><span class="" style="white-space:pre"> </span>'* -> Rejected' => {</div>
<div><span class="" style="white-space:pre"> </span> label => 'Reject',</div><div><span class="" style="white-space:pre"> </span> update => 'Comment',</div><div><span class="" style="white-space:pre"> </span>},</div>
<div><span class="" style="white-space:pre"> </span>'Rejected -> NeedAction' => {</div><div> label => 'NeedAction',</div><div> update => 'Comment',</div>
<div> },</div><div> ],</div><div> },</div><div><br></div><div> # Status mapping different different lifecycles</div><div> );</div></div><div><br></div><div>Any comments of this?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 6, 2013 at 10:57 PM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Aug 06, 2013 at 09:21:12PM +0800, Chrilly Cheng wrote:<br>
> Hi All,<br>
> I encountered this issue when i was trying to setup RT on a new server.<br>
> I've created a Lifecycle in RT_SiteConfig.pm file:<br>
> Set(%Lifecycles,<br>
> cyclename => {<br>
> .......<br>
> },<br>
> );<br>
> All queues i created are using this lifecycle, even the default queue. But after i configured<br>
> and tested ticket lifecycle, i found out Quick search component shows none ticket amount of<br>
> all those queues.<br>
> I tried to creat a new queue with approvals lifecycle, the ticket amount of all status do<br>
> show. Then i tried to clear the mason data, replaced those Quicksearch,<br>
<br>
</div>This implies that your custom lifecycle is not correct.<br>
However, you didn't show your lifecycle, so that's just a guess.<br>
<span class="HOEnZb"><font color="#888888"><br>
-kevin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> QueueSummaryByLifecycle QueueSummaryByStatus files in<br>
> /usr/share/request-tracker4/html/Elements, it turned out to make no sense at all.<br>
> I'm so frustrated on this, somebody please help. Any comments or ideas would be great<br>
> appreciated. Thanks all.<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><b style="color:rgb(102,0,204)">Br</b><br><b style="color:rgb(102,0,204)">Vodar</b><br><i><font color="#33FFFF">It's not where you start -- it's where you finish that count.</font></i>
</div>