
ivanelsonnunes at gmail
Aug 7, 2013, 4:10 PM
Post #3 of 3
(18 views)
Permalink
|
|
Re: Re: How to identify the Ticket will be closed?
[In reply to]
|
|
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 <rjollos [at] gmail> > 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 trac-users+unsubscribe [at] googlegroups > To post to this group, send email to trac-users [at] googlegroups > 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 trac-users+unsubscribe [at] googlegroups To post to this group, send email to trac-users [at] googlegroups Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
|