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

Mailing List Archive: Trac: Users

How to identify the Ticket will be closed?

 

 

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


ivanelsonnunes at gmail

Jul 30, 2013, 4:31 PM

Post #1 of 3 (47 views)
Permalink
How to identify the Ticket will be closed?

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.

Thank you.

[1] http://www.glpi-project.org/spip.php?article317

@ivanelson
[]s

--
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.


rjollos at gmail

Aug 7, 2013, 2:22 AM

Post #2 of 3 (19 views)
Permalink
Re: How to identify the Ticket will be closed? [In reply to]

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.


ivanelsonnunes at gmail

Aug 7, 2013, 4:10 PM

Post #3 of 3 (17 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.

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


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.