Plugin to close a specific ticket?

18 views
Skip to first unread message

Santiago Uribe

unread,
May 21, 2021, 2:27:38 PM5/21/21
to Trac Users
Is there a way to close a ticket or transfer the ticket to another user through a plugin. Any suggestions?

RjOllos

unread,
May 21, 2021, 2:45:05 PM5/21/21
to Trac Users
On Friday, May 21, 2021 at 11:27:38 AM UTC-7 santiag...@digidescorp.com wrote:
Is there a way to close a ticket or transfer the ticket to another user through a plugin. Any suggestions?

Yes, you can implement custom rules using ITicketManipulator:

Could you describe in more detail the rules you wish to implement?

Ryan 

Santiago Uribe

unread,
May 21, 2021, 3:01:21 PM5/21/21
to Trac Users
I modify the exceldownloadplugin to write tickets to an excel sheet in a desire format that we need. But I wanted to delete or send to another user the tickets that were used to populate the excel sheet that was generated by my plugin.

RjOllos

unread,
May 21, 2021, 3:07:47 PM5/21/21
to Trac Users
On Friday, May 21, 2021 at 12:01:21 PM UTC-7 santiag...@digidescorp.com wrote:
I modify the exceldownloadplugin to write tickets to an excel sheet in a desire format that we need. But I wanted to delete or send to another user the tickets that were used to populate the excel sheet that was generated by my plugin.

In that case, you likely want to work with a model.Ticket object, apply the changes to the ticket, and finally call ticket.save_changes. 

Ryan

Santiago Uribe

unread,
May 21, 2021, 3:09:49 PM5/21/21
to trac-...@googlegroups.com
Thanks Ryan

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/495be0c0-7a79-4ce2-9830-2c5f15f8ec6fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages