Re: [rt-users] Including latest transactions in RSS-Feed

2015-08-27 Thread Markus . Wildbolz
Hi guys!

I've managed, to play a little bit with the RSS-feed generation at 
/html/Search/Elements/ResultsRSSView

But at the moment I'm stuck at fetching the latest transaction with type 
Correspond or Comment from the database for displaying the right 
content.
Is anybody out there who could help me with this?

My current code looks like:

while ( my $Ticket = $Tickets-Next()) {
my $transactions = RT::Transactions-new($session{CurrentUser});
$transactions-LimitToTicket($Ticket-id);
 
# Limit to transactions with type Comment
$transactions-Limit(
FIELD = 'Type',
VALUE = 'Comment'
); 
 
my $content = $transactions-Last-Content;

...


I get the following error in the logs:
 Can't call method Content on an undefined value at 
/opt/rt4-devel/local/html/Search/Elements/ResultsRSSView


I don't know actually, why the variable $transactions has an undefined 
value.


Greetings,
Markus


[rt-users] Deleting time from Due Date Format

2015-08-27 Thread Raymond Corbett
I know I can go to the locale settings to change formats.  Currenly I am using 
the date format Thu, Aug 27, 2015 11:32:02 AM

The problem is that we want our date format, most specifically Due Date, to 
simply  be  Thu, Aug 27, 2015

We do not want to see the time portion, so when we set a Due Date we simply 
have the date display withought the time portion..

Is there a file I can edit somewhere, to strip out the time portion of the date?

Thanks





Re: [rt-users] missing plugin

2015-08-27 Thread Steve Postma
Sorry, I didn't mention that it has been running for 2 weeks or so. I 
re-downloaded the plugin, ran through make , make install etc, still no change. 
I have 2 other rt machines I installed at the same time that are NOT having the 
same issue.


Thanks,

Steve


From: Matt Zagrabelny mzagr...@d.umn.edu
Sent: Wednesday, August 26, 2015 6:33 PM
To: Steve Postma
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] missing plugin

On Wed, Aug 26, 2015 at 10:20 AM, Steve Postma 
spos...@ztechnet.commailto:spos...@ztechnet.com wrote:
 Hi all,

 my repeat-ticket extension is missing from the web interface.

 cleared mason cache, restarted httpd,


 RT_SiteConfig.pm still calls on it to be loaded, no errors in 
 /var/log/messages or var/log/httpd


 How can I troubleshoot this?

Did you download the plugin?

https://metacpan.org/release/RT-Extension-RepeatTicket

-m



Re: [rt-users] Including latest transactions in RSS-Feed

2015-08-27 Thread Christian Loos
Hi,

$transactions isn't undefined but $transactions is an empty collection
and thus $transactions-Last is undefined.
This happens on tickets that don't have a Comment transaction.

Depending in the surrounding code a simple

return unless $transactions-Count;

before the 'my $comment ...' would help here.


Also instead of

my $transactions = RT::Transactions-new($session{CurrentUser});
$transactions-LimitToTicket($Ticket-id);

you maybe better write

my $transactions = $Ticket-Transactions;

as this also takes merged tickets into account.

Chris

Am 27.08.2015 um 16:27 schrieb markus.wildb...@eu.magna.com:
 Hi guys!
 
 I've managed, to play a little bit with the RSS-feed generation at
 /html/Search/Elements/ResultsRSSView
 
 But at the moment I'm stuck at fetching the latest transaction with type
 Correspond or Comment from the database for displaying the right
 content.
 Is anybody out there who could help me with this?
 
 My current code looks like:
 
 while ( my $Ticket = $Tickets-Next()) {
 my $transactions = RT::Transactions-new($session{CurrentUser});
 $transactions-LimitToTicket($Ticket-id);

 # Limit to transactions with type Comment
 $transactions-Limit(
 FIELD = 'Type',
 VALUE = 'Comment'
 );
  
 my $content = $transactions-Last-Content;
 
 ...
 
 
 I get the following error in the logs:
  Can't call method Content on an undefined value at
 /opt/rt4-devel/local/html/Search/Elements/ResultsRSSView
 
 
 I don't know actually, why the variable $transactions has an undefined
 value.
 
 
 Greetings,
 Markus



[rt-users] Custom Charting and Tables

2015-08-27 Thread Anton Panetta
Hi There

I'm curious if anyone else has attempted or found a way to achieve this.

What I am

Able to make is this (sort for the lack of formatting)

Queue

Status

Ticket count

BPA



new

11

open

5

rejected

1

resolved

7

COO Projects

new

2

open

3

rejected

2

resolved

6

DI

new

8

open

3

resolved

1

stalled

1

Finance

new

6

resolved

5

IT BI Requests

new

12

stalled

1

IT Helpdesk

new

8

open

8

resolved

42

IT Projects

new

18

open

1

resolved

2

stalled

1

Total

0

154



What id like to make is closer to this

Queue

Open

New

Resolved

Stalled

Rejected

Total

IT

1

5

10

2

0

18

DI

2

5

10

3

0

20

BI

3

5

10

2

0

20

Project

4

5

10

3

1

23

Total

10

20

40

10

1




The Idea is to include it in a dashboard.

I am aware that using the chat tool to make a table is a bit of a side way, I 
could possibly make do if I could make the tables run horizontal.


Regards
Anton


[rt-users] Prevent users from changing a ticket's priority

2015-08-27 Thread Armen Tashjian
Anyone have any information about preventing users from changing a ticket's 
priority? I would still like a user to have the ability to change the status, 
owner, and queue of a ticket.