On Saturday, March 22, 2014 5:46:59 PM UTC-7, ONeal Freeman wrote:
>
> In trac 1.0.1 I am trying to configure the workflow so that a newly 
> created ticket will set the owner to the reporter. I tried adding my own 
> section:
>
> create = * -> new
> create.operations = set_owner_to_reporter
> create.permissions = TICKET_CREATE
>

It's not currently possible to define an operation for a transition to the 
new state, though we've discussed changing that:
http://trac.edgewall.org/ticket/2045
 
I guess you must be using AdvancedTicketWorkflowPlugin plugin for its 
`set_owner_to_reporter` operation. On the other hand, if you haven't 
installed that plugin, you shouldn't expect to have that operation.
http://trac-hacks.org/wiki/AdvancedTicketWorkflowPlugin

but it did no work.
>
> My previous trac version (0.10.4) took care of this but as I said I have 
> not found the right configuration yet.
>

It surprises me to hear that you had this functionality in Trac 0.10.4 
without adding it through a plugin.

I don't know of a way you can accomplish it without writing a little bit of 
code, but you could set the owner to reporter by implementing 
ITicketManipulator. You could copy what's done in DefaultCcPlugin, 
replacing the code inside the highlighted conditional with: ticket['owner'] 
= ticket['reporter']
http://trac-hacks.org/browser/defaultccplugin/trunk/defaultcc/main.py?rev=13747&marks=31

    def validate_ticket(self, req, ticket):        if 'preview' not in req.
args and 'comment' not in req.args:
            ticket['owner'] = ticket['reporter']        return []
 

> I also tried to set it in trac.ini by setting default_owner =  to a number 
> of values, none of which worked.
>
> Thanks in advance.
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to