The code was refactored. https://gist.github.com/ivanelson/8074704

I still need help. I want with just one click:

Check if there is comment on the form, if yes close the ticket, otherwise do
nothing and display an alert message.

@ivanelson
[]s


2013/12/21 Ivanelson Nunes <[email protected]>

> Here is the result of small plugin.
>
> https://gist.github.com/ivanelson/8074704
>
>
>
> @ivanelson
> []s
>
>
> 2013/12/18 Steffen Hoffmann <[email protected]>
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 18.12.2013 00:10, Ivanelson Nunes wrote:
>> > I want to set a rule. Can only close the ticket if you write a comment.
>> >
>> > How do I do this?
>> >
>> > Trac-1.0
>>
>> Write a mini-plugin using ITicketManipulator [1] interface, rejecting
>> ticket changes going to ticket['status'] == 'closed' with empty
>> ticket['comment'].
>>
>>
>> Steffen Hoffmann
>>
>> [1]
>>
>> http://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAlKxkj8ACgkQ31DJeiZFuHdSawCg2e8gr4HCPr60J2/FLDKTcdd3
>> 3nkAnjjwcE1WB5rD/1MutmfPaFw9CkiX
>> =Skc1
>> -----END PGP SIGNATURE-----
>>
>> --
>> 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