I would like to put a custom field as part of the “X highest priority tickets I own …” section on the at a glance page. Each ticket will have this custom field filled in. Not sure where to start … Any suggestions on how to get a custom field on the main page?
Paul
(I think we’re supposed to respond to the whole list so others can see the results or help out
I haven’t seen a response to this (or my other questions). But I think I may have a solution:
I copied share/html/Elements/MyTickets (which is where the top X tickets code goes) to my local directory. I then modified it to add the field. Turns out it’s not too complicated. Within my table field, I added this line (saw the code somewhere else):
<%$Ticket->FirstCustomFieldValue (‘Business Priority’)%>
Change ‘Business Priority’ to ‘SubQueue’ and it should work for you. Just a little html and that statement did the trick.
Unfortunately, I don’t know how to sort on this field yet, but that was secondary for me …
PaulFrom: Dale Bewley [mailto:dlbewley@ucdavis.edu]
Sent: Friday, April 02, 2004 8:18 AM
To: Paul Barmaksezian
Subject: Re: [rt-users] CustomFields in At A Glance Page
Any luck yet? I have a CF called “SubQueue” that I want to go underneath
“Queue” in the ticket list rather than the current “Last Contact”. I
haven’t yet figured out which file I need to customize or just how.
I started with this
http://wiki.bestpractical.com/cgi-bin/index.cgi?CleanlyCustomizeRT
I’m using RT 3.0.9
I’ve copied rt/share/html/Elements/MyTickets to
rt/local/html/Elements/MyTickets then added
<TD>
<%$Ticket->QueueObj->Name%>
<%$Ticket->FirstCustomFieldValue('SubQueue') || 'x'%>
</TD>
And even for tickets that have a value in the
global CF named SubQueue, I only get ‘x’. My CF’s are of “Select one value” type.
After I get this working I want to get this CF to show up on the search
page by altering rt/local/html/Search/Elements/TicketRow and
TicketHeader. So far I get no value returned there either.
Any ideas?On Fri, 2004-04-02 at 08:42, Paul Barmaksezian wrote:
(I think we’re supposed to respond to the whole list so others can see the results or help out
I haven’t seen a response to this (or my other questions). But I think I may have a solution:
I copied share/html/Elements/MyTickets (which is where the top X tickets code goes) to my local directory. I then modified it to add the field. Turns out it’s not too complicated. Within my table field, I added this line (saw the code somewhere else):
<%$Ticket->FirstCustomFieldValue (‘Business Priority’)%>
Change ‘Business Priority’ to ‘SubQueue’ and it should work for you. Just a little html and that statement did the trick.
Unfortunately, I don’t know how to sort on this field yet, but that was secondary for me …
Paul
-----Original Message-----
From: Dale Bewley [mailto:dlbewley@ucdavis.edu]
Sent: Friday, April 02, 2004 8:18 AM
To: Paul Barmaksezian
Subject: Re: [rt-users] CustomFields in At A Glance Page
Any luck yet? I have a CF called “SubQueue” that I want to go underneath
“Queue” in the ticket list rather than the current “Last Contact”. I
haven’t yet figured out which file I need to customize or just how.
I started with this
Request Tracker Wiki
On Fri, 2004-03-26 at 09:04, Paul Barmaksezian wrote:
I would like to put a custom field as part of the “X highest priority
tickets I own …” section on the at a glance page. Each ticket will
have this custom field filled in. Not sure where to start … Any
suggestions on how to get a custom field on the main page?
Paul
rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
Dale Bewley - dlbewley a/t lib.ucdavis.edu
Unix Administrator - Shields Library - UC Davis
Well, I just discovered that if I specify the customfield by id then it
works.
I thought I found the problem:
In Ticket_Overlay.pm sub CustomFieldValues there is this call
$cf->LoadByNameAndQueue(Name => $field, Queue => $self->QueueObj->Id);
And in CustomField_Overlay.pm sub LoadByNameAndQueue there
is this which at first I thought would out the field name but
testing doesn’t bear that out.
my %args = (
Queue => undef,
Name => undef,
@_,
);On Fri, 2004-04-02 at 10:49, Dale Bewley wrote:
I’m using RT 3.0.9
I’ve copied rt/share/html/Elements/MyTickets to
rt/local/html/Elements/MyTickets then added
<TD>
<%$Ticket->QueueObj->Name%>
<%$Ticket->FirstCustomFieldValue('SubQueue') || 'x'%>
</TD>
And even for tickets that have a value in the
global CF named SubQueue, I only get ‘x’. My CF’s are of “Select one value” type.
After I get this working I want to get this CF to show up on the search
page by altering rt/local/html/Search/Elements/TicketRow and
TicketHeader. So far I get no value returned there either.
Any ideas?
On Fri, 2004-04-02 at 08:42, Paul Barmaksezian wrote:
(I think we’re supposed to respond to the whole list so others can see the results or help out
I haven’t seen a response to this (or my other questions). But I think I may have a solution:
I copied share/html/Elements/MyTickets (which is where the top X tickets code goes) to my local directory. I then modified it to add the field. Turns out it’s not too complicated. Within my table field, I added this line (saw the code somewhere else):
<%$Ticket->FirstCustomFieldValue (‘Business Priority’)%>
Change ‘Business Priority’ to ‘SubQueue’ and it should work for you. Just a little html and that statement did the trick.
Unfortunately, I don’t know how to sort on this field yet, but that was secondary for me …
Paul
-----Original Message-----
From: Dale Bewley [mailto:dlbewley@ucdavis.edu]
Sent: Friday, April 02, 2004 8:18 AM
To: Paul Barmaksezian
Subject: Re: [rt-users] CustomFields in At A Glance Page
Any luck yet? I have a CF called “SubQueue” that I want to go underneath
“Queue” in the ticket list rather than the current “Last Contact”. I
haven’t yet figured out which file I need to customize or just how.
I started with this
Request Tracker Wiki
On Fri, 2004-03-26 at 09:04, Paul Barmaksezian wrote:
I would like to put a custom field as part of the “X highest priority
tickets I own …” section on the at a glance page. Each ticket will
have this custom field filled in. Not sure where to start … Any
suggestions on how to get a custom field on the main page?
Paul
rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
Dale Bewley - dlbewley a/t lib.ucdavis.edu
Unix Administrator - Shields Library - UC Davis
I think you are seeing a bug that was fixed in 3.0.10.
-ToddOn Fri, Apr 02, 2004 at 11:13:57AM -0800, Dale Bewley wrote:
Well, I just discovered that if I specify the customfield by id then it
works.
I thought I found the problem:
In Ticket_Overlay.pm sub CustomFieldValues there is this call
$cf->LoadByNameAndQueue(Name => $field, Queue => $self->QueueObj->Id);
And in CustomField_Overlay.pm sub LoadByNameAndQueue there
is this which at first I thought would out the field name but
testing doesn’t bear that out.
my %args = (
Queue => undef,
Name => undef,
@_,
);
On Fri, 2004-04-02 at 10:49, Dale Bewley wrote:
I’m using RT 3.0.9
I’ve copied rt/share/html/Elements/MyTickets to
rt/local/html/Elements/MyTickets then added
<TD>
<%$Ticket->QueueObj->Name%>
<%$Ticket->FirstCustomFieldValue('SubQueue') || 'x'%>
</TD>
And even for tickets that have a value in the
global CF named SubQueue, I only get ‘x’. My CF’s are of “Select one value” type.
After I get this working I want to get this CF to show up on the search
page by altering rt/local/html/Search/Elements/TicketRow and
TicketHeader. So far I get no value returned there either.
Any ideas?
On Fri, 2004-04-02 at 08:42, Paul Barmaksezian wrote:
(I think we’re supposed to respond to the whole list so others can see the results or help out
I haven’t seen a response to this (or my other questions). But I think I may have a solution:
I copied share/html/Elements/MyTickets (which is where the top X tickets code goes) to my local directory. I then modified it to add the field. Turns out it’s not too complicated. Within my table field, I added this line (saw the code somewhere else):
<%$Ticket->FirstCustomFieldValue (‘Business Priority’)%>
Change ‘Business Priority’ to ‘SubQueue’ and it should work for you. Just a little html and that statement did the trick.
Unfortunately, I don’t know how to sort on this field yet, but that was secondary for me …
Paul
-----Original Message-----
From: Dale Bewley [mailto:dlbewley@ucdavis.edu]
Sent: Friday, April 02, 2004 8:18 AM
To: Paul Barmaksezian
Subject: Re: [rt-users] CustomFields in At A Glance Page
Any luck yet? I have a CF called “SubQueue” that I want to go underneath
“Queue” in the ticket list rather than the current “Last Contact”. I
haven’t yet figured out which file I need to customize or just how.
I started with this
Request Tracker Wiki
On Fri, 2004-03-26 at 09:04, Paul Barmaksezian wrote:
I would like to put a custom field as part of the “X highest priority
tickets I own …” section on the at a glance page. Each ticket will
have this custom field filled in. Not sure where to start … Any
suggestions on how to get a custom field on the main page?
Paul
rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
–
Dale Bewley - dlbewley a/t lib.ucdavis.edu
Unix Administrator - Shields Library - UC Davis
rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
Upgrading to 3.0.10 fixed this.
Thanks
Dale Bewley - dlbewley a/t lib.ucdavis.edu
Unix Administrator - Shields Library - UC Davis