You can also try the Validate Rule that's part of the Dynamic Fields plugin:
http://trac-hacks.org/wiki/DynamicFieldsPlugin#Validaterule This solution isn't foolproof - it's more useful as a helpful reminder to users than an outright guarantee. - Rob On Wed, Dec 18, 2013 at 9:06 AM, Ivanelson Nunes <[email protected]>wrote: > This suggestion is exciting. > > I'll try. > > Thank you. > > @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. > -- 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.
