I am checking like this:

> try:
>        if 'testing' == old_values['status'] and    \
>            old_values['resolution'] == ''    and    \
>            ticket['status'] == 'closed':
>            self.log.info('glpi solved')
>        else:
>              return
> except KeyError, e:
>          pass


I'm testing, I'm still not firm it is correct.

My workflow: testing -> closed.

@ivanelson
[]s


2013/8/7 RjOllos <[email protected]>

> On Tuesday, July 30, 2013 4:31:44 PM UTC-7, ivanelson wrote:
>
> How to identify the Ticket will be closed?
>>
>> I'm doing a simple integration of the Trac with GLPI [1].
>>
>> I extend component and overriding the method:
>>
>> ticket_changed (self, ticket, comment, author, old_values)
>>
>> How do I identify exactly what the status of the ticket is 'close'?
>>
>> I need this information to then update the database of GLPI.
>>
>
> I believe you can access the status in the listener through:
> ticket['status']
>
> --
> 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/groups/opt_out.
>
>
>

-- 
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/groups/opt_out.


Reply via email to