Mailing List Archive

Plugin to close a specific ticket?
Is there a way to close a ticket or transfer the ticket to another user
through a plugin. Any suggestions?

--
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@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/b12fee97-c443-4aae-bdf6-5962b3968e86n%40googlegroups.com.
Re: Plugin to close a specific ticket? [ In reply to ]
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:
https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator

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

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/19e5372f-87ff-4c6c-8d1f-808d8f6c8078n%40googlegroups.com.
Re: Plugin to close a specific ticket? [ In reply to ]
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.

On Friday, May 21, 2021 at 1:45:05 PM UTC-5 RjOllos wrote:

> 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:
>
> https://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator
>
> Could you describe in more detail the rules you wish to implement?
>
> 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/6e1c1b0c-534b-4b16-83fa-488980ae7884n%40googlegroups.com.
Re: Plugin to close a specific ticket? [ In reply to ]
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.
https://trac.edgewall.org/wiki/TracDev/DataModels#Ticket

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+unsubscribe@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.
Re: Re: Plugin to close a specific ticket? [ In reply to ]
Thanks Ryan

On Fri, May 21, 2021 at 2:07 PM RjOllos <rjollos@gmail.com> wrote:

>
>
> 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.
> https://trac.edgewall.org/wiki/TracDev/DataModels#Ticket
>
> 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+unsubscribe@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
> <https://groups.google.com/d/msgid/trac-users/495be0c0-7a79-4ce2-9830-2c5f15f8ec6fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

--
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@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAD%2B_ammzWETtiKS8De4VdnKe-%3D_eGk%3Dq1S3zZudO%2BJhh2PkfNg%40mail.gmail.com.