Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

[4.0.7][Debian]Quick search in homepage doesn't show ticket amount

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


chrilde at gmail

Aug 6, 2013, 6:21 AM

Post #1 of 5 (37 views)
Permalink
[4.0.7][Debian]Quick search in homepage doesn't show ticket amount

Hi All,

I encountered this issue when i was trying to setup RT on a new server.
I've created a Lifecycle in RT_SiteConfig.pm file:
Set(%Lifecycles,
cyclename => {
.......
},
);

All queues i created are using this lifecycle, even the default queue. But
after i configured and tested ticket lifecycle, i found out Quick search
component shows none ticket amount of all those queues.
I tried to creat a new queue with approvals lifecycle, the ticket amount of
all status do show. Then i tried to clear the mason data, replaced those
Quicksearch, QueueSummaryByLifecycle QueueSummaryByStatus files in
/usr/share/request-tracker4/html/Elements, it turned out to make no sense
at all.

I'm so frustrated on this, somebody please help. Any comments or ideas
would be great appreciated. Thanks all.

--
*Br*
*Vodar*
*It's not where you start -- it's where you finish that count.*


falcone at bestpractical

Aug 6, 2013, 7:57 AM

Post #2 of 5 (34 views)
Permalink
Re: [4.0.7][Debian]Quick search in homepage doesn't show ticket amount [In reply to]

On Tue, Aug 06, 2013 at 09:21:12PM +0800, Chrilly Cheng wrote:
> Hi All,
> I encountered this issue when i was trying to setup RT on a new server.
> I've created a Lifecycle in RT_SiteConfig.pm file:
> Set(%Lifecycles,
> cyclename => {
> .......
> },
> );
> All queues i created are using this lifecycle, even the default queue. But after i configured
> and tested ticket lifecycle, i found out Quick search component shows none ticket amount of
> all those queues.
> I tried to creat a new queue with approvals lifecycle, the ticket amount of all status do
> show. Then i tried to clear the mason data, replaced those Quicksearch,

This implies that your custom lifecycle is not correct.
However, you didn't show your lifecycle, so that's just a guess.

-kevin

> QueueSummaryByLifecycle QueueSummaryByStatus files in
> /usr/share/request-tracker4/html/Elements, it turned out to make no sense at all.
> I'm so frustrated on this, somebody please help. Any comments or ideas would be great
> appreciated. Thanks all.


chrilde at gmail

Aug 6, 2013, 10:20 PM

Post #3 of 5 (29 views)
Permalink
Re: [4.0.7][Debian]Quick search in homepage doesn't show ticket amount [In reply to]

Hi Kevin,

Thanks for your reply. I've test my custom lifecycle in RT web ui, it works
fine.

For your concern, i paste my lifecycle code at below, please help to check
it, thanks a lot!

File location: /etc/request-tracker4/RT_SiteConfig.pm

Set(%Lifecycles,

# modify the default lifecycle
crmcase => {
# All the appropriate ticket statuses
initial => [ 'NeedAction' ],
active => [ 'InProgress','WaitingforCustomer',
'WaitingforVendor', 'WaitingforLaunch', 'Monitoring' ],
inactive => [ 'Closed','Rejected' ],

# Default ticket statuses for certain actions
defaults => {
on_create => 'NeedAction',
},

# Status change restrictions
transitions => {
'NeedAction' => [qw(InProgress Rejected)],
'InProgress' => [qw(WaitingforCustomer WaitingforVendor
WaitingforLaunch NeedAction Monitoring Rejected Closed)],
'WaitingforCustomer' => [qw(InProgress Rejected)],
'WaitingforVendor' => [qw(InProgress Rejected)],
'WaitingforLaunch' => [qw(InProgress Rejected)],
'Monitoring' => [qw(InProgress Closed)],
'Closed' => [qw(NeedAction)],
'Rejected' => [qw(NeedAction)],
},

# Rights for different actions
rights => {

# These rights are in the default lifecycle
'* -> Monitoring' => 'Monitoring Case',
'Closed,Rejected -> *' => 'Reopen Case',
'* -> Rejected' => 'Reject Case',

},

# Actions for the web UI
actions => [.
'NeedAction -> InProgess' => {
label => 'Accept Case',
update => 'Comment',
},
'InProgress -> WaitingforCustomer' => {
label => 'Waiting for Customer',
update => 'Comment',
},
'InProgress -> WaitingforVendor' => {
label => 'Waiting for Vendor',
update => 'Comment',
},
'InProgress -> WaitingforLaunch' => {
label => 'Waiting for Launch',
update => 'Comment',
},
'InProgress -> Monitoring' => {
label => 'Start Monitoring',
update => 'Comment',
},
'WaitingforCustomer -> InProgress' => {
label => 'Receive from Customer',
update => 'Comment',
},
'WaitingforVendor -> InProgress' => {
label => 'Receive from Vendor',
update => 'Comment',
},
'WaitingforLaunch -> InProgress' => {
label => 'Ready for Launch',
update => 'Comment',
},
'InProgress -> NeedAction' => {
label => 'Reassign Case',
update => 'Comment',
},
'Monitoring -> Closed' => {
label => 'Close Case',
update => 'Comment',
},
'Closed -> NeedAction' => {
label => 'Reopen Case',
update => 'Comment',
},
'* -> Rejected' => {
label => 'Reject',
update => 'Comment',
},
'Rejected -> NeedAction' => {
label => 'NeedAction',
update => 'Comment',
},
],
},

# Status mapping different different lifecycles
);

Any comments of this?


On Tue, Aug 6, 2013 at 10:57 PM, Kevin Falcone <falcone [at] bestpractical>wrote:

> On Tue, Aug 06, 2013 at 09:21:12PM +0800, Chrilly Cheng wrote:
> > Hi All,
> > I encountered this issue when i was trying to setup RT on a new
> server.
> > I've created a Lifecycle in RT_SiteConfig.pm file:
> > Set(%Lifecycles,
> > cyclename => {
> > .......
> > },
> > );
> > All queues i created are using this lifecycle, even the default
> queue. But after i configured
> > and tested ticket lifecycle, i found out Quick search component shows
> none ticket amount of
> > all those queues.
> > I tried to creat a new queue with approvals lifecycle, the ticket
> amount of all status do
> > show. Then i tried to clear the mason data, replaced those
> Quicksearch,
>
> This implies that your custom lifecycle is not correct.
> However, you didn't show your lifecycle, so that's just a guess.
>
> -kevin
>
> > QueueSummaryByLifecycle QueueSummaryByStatus files in
> > /usr/share/request-tracker4/html/Elements, it turned out to make no
> sense at all.
> > I'm so frustrated on this, somebody please help. Any comments or
> ideas would be great
> > appreciated. Thanks all.
>



--
*Br*
*Vodar*
*It's not where you start -- it's where you finish that count.*


falcone at bestpractical

Aug 7, 2013, 10:55 AM

Post #4 of 5 (28 views)
Permalink
Re: [4.0.7][Debian]Quick search in homepage doesn't show ticket amount [In reply to]

On Wed, Aug 07, 2013 at 01:20:35PM +0800, Chrilly Cheng wrote:
> Thanks for your reply. I've test my custom lifecycle in RT web ui, it works fine.
> For your concern, i paste my lifecycle code at below, please help to check it, thanks a lot!

Thanks for sending along the LifeCycle config. It points out a
regression introduced in 4.0.13. We've merged a fix for it and you
can grab the commit from here and apply it:

details
https://github.com/bestpractical/rt/commit/5a5579867ae459ce3c55571450a501220ba9b3a8

You can
wget
https://github.com/bestpractical/rt/commit/5a5579867ae459ce3c55571450a501220ba9b3a8.patch
cd /opt/rt4
patch -p1 < 5a5579867ae459ce3c55571450a501220ba9b3a8.patch

when 4.0.18 ships, it'll have a fix for it.

Also, you should fix the warnings that RT logs when starting up about
errors in your lifecycle.

[warning]: Nonexistant status closed,rejected in right transition in crmcase lifecycle
[warning]: Nonexistant status inprogess in action in crmcase lifecycle

-kevin


chrilde at gmail

Aug 7, 2013, 10:56 PM

Post #5 of 5 (24 views)
Permalink
Re: [4.0.7][Debian]Quick search in homepage doesn't show ticket amount [In reply to]

Thanks a lot, Kevin. This issue is fixed according to your solution.
And I've noticed that warning info and fixed it also. Sincere thanks for
your help.

Br
Vodar

On Thu, Aug 8, 2013 at 1:55 AM, Kevin Falcone <falcone [at] bestpractical>wrote:

> On Wed, Aug 07, 2013 at 01:20:35PM +0800, Chrilly Cheng wrote:
> > Thanks for your reply. I've test my custom lifecycle in RT web ui, it
> works fine.
> > For your concern, i paste my lifecycle code at below, please help to
> check it, thanks a lot!
>
> Thanks for sending along the LifeCycle config. It points out a
> regression introduced in 4.0.13. We've merged a fix for it and you
> can grab the commit from here and apply it:
>
> details
>
> https://github.com/bestpractical/rt/commit/5a5579867ae459ce3c55571450a501220ba9b3a8
>
> You can
> wget
>
> https://github.com/bestpractical/rt/commit/5a5579867ae459ce3c55571450a501220ba9b3a8.patch
> cd /opt/rt4
> patch -p1 < 5a5579867ae459ce3c55571450a501220ba9b3a8.patch
>
> when 4.0.18 ships, it'll have a fix for it.
>
> Also, you should fix the warnings that RT logs when starting up about
> errors in your lifecycle.
>
> [warning]: Nonexistant status closed,rejected in right transition in
> crmcase lifecycle
> [warning]: Nonexistant status inprogess in action in crmcase lifecycle
>
> -kevin
>



--
*Br*
*Vodar*
*It's not where you start -- it's where you finish that count.*

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.