This project is read-only.

Showing dbo.comments.submitter on my_issues.aspx

Aug 26, 2011 at 8:33 AM

Hi'

 

I'm trying to hack the code, so that when I'm on my_issues.aspx, I can see the username of the user who last wrote something to a ticket.

I know, that when I hoover over a ticket i can see when there last was something added to it, but i'd like to see the username of who added something in the ticket list, along with the title and status.

But i'm having trouble reverse engineering the code for the part that lists the tickets. I can see that it's a Eval(dbo.tickets.column) thing that gets the info to be listed, but I can't find the code where it's specified which table it should get the info from.

How do I specify an eval that gets the dbo.comments.submitter field for a specific ticket id?

Thanks in advance :-)

Jacob

Sep 1, 2011 at 3:03 AM

You would have to write an extension or query to look through the ticket, find the last comment and then query that submitter.

Something like

ticket.comments.OrderByDescending(x => x.submitted).Last().submitter (that would get the id of the user)