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

Mailing List Archive: Trac: Users

Looking for the record creator

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


didley at gmx

Oct 7, 2008, 12:18 AM

Post #1 of 7 (125 views)
Permalink
Looking for the record creator

Sometimes it's necessary that a user with ticket-admin permission has
to create tickets with to fill out reporter and assign a owner. When
this is done I can't see the creator (ticket-admin) of the ticket.
After a while all user thinking the inscribed reporter is the creator
but it isn't.


Is there a field in the table schema of trac where I can find the
creator?


didley
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


stephen.moretti at gmail

Oct 7, 2008, 12:33 AM

Post #2 of 7 (114 views)
Permalink
Re: Looking for the record creator [In reply to]

2008/10/7 didley <didley[at]gmx.de>

>
> Sometimes it's necessary that a user with ticket-admin permission has
> to create tickets with to fill out reporter and assign a owner. When
> this is done I can't see the creator (ticket-admin) of the ticket.
> After a while all user thinking the inscribed reporter is the creator
> but it isn't.
>
>
> Is there a field in the table schema of trac where I can find the
> creator?
>

Nope. The reporter is the creator under most circumstances.
Have you thought of leaving the reporter as the ticket-admin and adding the
person who emailed/called the ticket as a cc member?
Or possibly adding a custom field for the creatpr?

Stephen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


didley at gmx

Oct 7, 2008, 11:51 PM

Post #3 of 7 (108 views)
Permalink
Re: Looking for the record creator [In reply to]

On Oct 7, 9:33 am, "Stephen Moretti" <stephen.more...@gmail.com>
wrote:
> 2008/10/7 didley <did...@gmx.de>
>
>
>
> > Sometimes it's necessary that a user with ticket-admin permission has
> > to create tickets with to fill out reporter and assign a owner. When
> > this is done I can't see the creator (ticket-admin) of the ticket.
> > After a while all user thinking the inscribed reporter is the creator
> > but it isn't.
>
> > Is there a field in the table schema of trac where I can find the
> > creator?
>
> Nope.  The reporter is the creator under most circumstances.
> Have you thought of leaving the reporter as the ticket-admin and adding the
> person who emailed/called the ticket as a cc member?
> Or possibly adding a custom field for the creatpr?
>
> Stephen

That's pity. I have to think obout if add a custom field for it. I
suppose it's the only way I have.

Thanx didley
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


noah at coderanger

Oct 7, 2008, 11:53 PM

Post #4 of 7 (108 views)
Permalink
Re: Looking for the record creator [In reply to]

On Oct 7, 2008, at 11:51 PM, didley wrote:

>
>
>
> On Oct 7, 9:33 am, "Stephen Moretti" <stephen.more...@gmail.com>
> wrote:
>> 2008/10/7 didley <did...@gmx.de>
>>
>>
>>
>>> Sometimes it's necessary that a user with ticket-admin permission
>>> has
>>> to create tickets with to fill out reporter and assign a owner. When
>>> this is done I can't see the creator (ticket-admin) of the ticket.
>>> After a while all user thinking the inscribed reporter is the
>>> creator
>>> but it isn't.
>>
>>> Is there a field in the table schema of trac where I can find the
>>> creator?
>>
>> Nope. The reporter is the creator under most circumstances.
>> Have you thought of leaving the reporter as the ticket-admin and
>> adding the
>> person who emailed/called the ticket as a cc member?
>> Or possibly adding a custom field for the creatpr?
>>
>> Stephen
>
> That's pity. I have to think obout if add a custom field for it. I
> suppose it's the only way I have.

It would be pretty easy to automate in a plugin, just make an
ITicketManipulator that sets the field value on create to req.authname.

--Noah

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


didley at gmx

Oct 8, 2008, 11:40 AM

Post #5 of 7 (107 views)
Permalink
Re: Looking for the record creator [In reply to]

On Oct 8, 8:53 am, Noah Kantrowitz <n...@coderanger.net> wrote:
> On Oct 7, 2008, at 11:51 PM, didley wrote:
>
>
>
>
>
>
>
> > On Oct 7, 9:33 am, "Stephen Moretti" <stephen.more...@gmail.com>
> > wrote:
> >> 2008/10/7 didley <did...@gmx.de>
>
> >>> Sometimes it's necessary that a user with ticket-admin permission  
> >>> has
> >>> to create tickets with to fill out reporter and assign a owner. When
> >>> this is done I can't see the creator (ticket-admin) of the ticket.
> >>> After a while all user thinking the inscribed reporter is the  
> >>> creator
> >>> but it isn't.
>
> >>> Is there a field in the table schema of trac where I can find the
> >>> creator?
>
> >> Nope.  The reporter is the creator under most circumstances.
> >> Have you thought of leaving the reporter as the ticket-admin and  
> >> adding the
> >> person who emailed/called the ticket as a cc member?
> >> Or possibly adding a custom field for the creatpr?
>
> >> Stephen
>
> > That's pity. I have to think obout if add a custom field for it. I
> > suppose it's the only way I have.
>
> It would be pretty easy to automate in a plugin, just make an  
> ITicketManipulator that sets the field value on create to req.authname.
>
> --Noah- Hide quoted text -
>
> - Show quoted text -

I would if I could.

didley
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


noah at coderanger

Oct 8, 2008, 11:45 AM

Post #6 of 7 (107 views)
Permalink
Re: Looking for the record creator [In reply to]

from trac.core import *
from trac.ticket.api import ITicketManipulator

class SetCreatorModule(Component):

implements(ITicketManipulator)

def prepare_ticket(self, req, ticket, fields, actions):
pass

def validate_ticket(self, req, ticket):
if req.path_info == '/newticket':
ticket['creator'] = req.authname
return ()

> -----Original Message-----
> From: trac-users[at]googlegroups.com [mailto:trac-users[at]googlegroups.com]
> On Behalf Of didley
> Sent: Wednesday, October 08, 2008 11:40 AM
> To: Trac Users
> Subject: [Trac] Re: Looking for the record creator
>
>
>
>
> On Oct 8, 8:53 am, Noah Kantrowitz <n...@coderanger.net> wrote:
> > On Oct 7, 2008, at 11:51 PM, didley wrote:
> >
> >
> >
> >
> >
> >
> >
> > > On Oct 7, 9:33 am, "Stephen Moretti" <stephen.more...@gmail.com>
> > > wrote:
> > >> 2008/10/7 didley <did...@gmx.de>
> >
> > >>> Sometimes it's necessary that a user with ticket-admin permission
>
> > >>> has
> > >>> to create tickets with to fill out reporter and assign a owner.
> When
> > >>> this is done I can't see the creator (ticket-admin) of the
> ticket.
> > >>> After a while all user thinking the inscribed reporter is the
> > >>> creator
> > >>> but it isn't.
> >
> > >>> Is there a field in the table schema of trac where I can find the
> > >>> creator?
> >
> > >> Nope.  The reporter is the creator under most circumstances.
> > >> Have you thought of leaving the reporter as the ticket-admin and
> > >> adding the
> > >> person who emailed/called the ticket as a cc member?
> > >> Or possibly adding a custom field for the creatpr?
> >
> > >> Stephen
> >
> > > That's pity. I have to think obout if add a custom field for it. I
> > > suppose it's the only way I have.
> >
> > It would be pretty easy to automate in a plugin, just make an
> > ITicketManipulator that sets the field value on create to
> req.authname.
> >
> > --Noah- Hide quoted text -
> >
> > - Show quoted text -
>
> I would if I could.
>
> didley
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


didley at gmx

Oct 10, 2008, 3:09 AM

Post #7 of 7 (95 views)
Permalink
Re: Looking for the record creator [In reply to]

Thanx. I will try to implement it

didley

On Oct 8, 8:45 pm, "Noah Kantrowitz" <n...@coderanger.net> wrote:
> from trac.core import *
> from trac.ticket.api import ITicketManipulator
>
> class SetCreatorModule(Component):
>
>     implements(ITicketManipulator)
>
>     def prepare_ticket(self, req, ticket, fields, actions):
>         pass
>
>     def validate_ticket(self, req, ticket):
>         if req.path_info == '/newticket':
>             ticket['creator'] = req.authname
>         return ()
>
>
>
> > -----Original Message-----
> > From: trac-users[at]googlegroups.com [mailto:trac-users[at]googlegroups.com]
> > On Behalf Of didley
> > Sent: Wednesday, October 08, 2008 11:40 AM
> > To: Trac Users
> > Subject: [Trac] Re: Looking for the record creator
>
> > On Oct 8, 8:53 am, Noah Kantrowitz <n...@coderanger.net> wrote:
> > > On Oct 7, 2008, at 11:51 PM, didley wrote:
>
> > > > On Oct 7, 9:33 am, "Stephen Moretti" <stephen.more...@gmail.com>
> > > > wrote:
> > > >> 2008/10/7 didley <did...@gmx.de>
>
> > > >>> Sometimes it's necessary that a user with ticket-admin permission
>
> > > >>> has
> > > >>> to create tickets with to fill out reporter and assign a owner.
> > When
> > > >>> this is done I can't see the creator (ticket-admin) of the
> > ticket.
> > > >>> After a while all user thinking the inscribed reporter is the
> > > >>> creator
> > > >>> but it isn't.
>
> > > >>> Is there a field in the table schema of trac where I can find the
> > > >>> creator?
>
> > > >> Nope.  The reporter is the creator under most circumstances.
> > > >> Have you thought of leaving the reporter as the ticket-admin and
> > > >> adding the
> > > >> person who emailed/called the ticket as a cc member?
> > > >> Or possibly adding a custom field for the creatpr?
>
> > > >> Stephen
>
> > > > That's pity. I have to think obout if add a custom field for it. I
> > > > suppose it's the only way I have.
>
> > > It would be pretty easy to automate in a plugin, just make an
> > > ITicketManipulator that sets the field value on create to
> > req.authname.
>
> > > --Noah- Hide quoted text -
>
> > > - Show quoted text -
>
> > I would if I could.
>
> > didley- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.