-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 23/11/11 04:09, Scott Bamford wrote: > We use Trac to as part of our project management. The tickets have > a custom field "Review Board #", where the numbers of the reviews > that correspond to the ticket are placed. At the moment the field > is filled with just the numbers. I'm looking to create a plugin > that will edit the the field, and replace the numbers with links to > review board e.g. if the Review Board # now contains '20', I want > it to be changed to [http://review-board-address/ r/20 20]. > Unfortunately, I have no experience in plug-in development, as so I > am looking for pointers on how to get started with this job.
You can take a look at [1] that handles our custom field 'epic' and make it search-able. The plugin does not change the value in the field, it just renders a link based on the content of the field thus editing your field won't change. To get it working for you, you need to change the custom field name and modify the _link_epic() method. The credits for this demo plugin should go to silk_ in #trac on freenode, thanks again bro'. :) Regards, Torbjörn Svensson [1] https://gist.github.com/37173002bed7959252ad -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7MnnEACgkQeY7jmtvbDP12qACaA2Y+qrCUacT8el8b1WceHVZY fe4AnjbAdc2K+ibImjvkIauGTN2KJFfe =txPN -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
