Re: [Issuetracker-development] Adding Custom Fields to "AddIssue"
Brought to you by:
peterbe
From: Peter B. <pe...@fr...> - 2007-06-21 12:09:07
|
Hi Samir, The best approach is to write a monkey patch. You override two methods to begin with. 1) You override the AddIssueTemplate something like this: from Products.IssueTrackerProduct.IssueTracker import IssueTracker setattr(IssueTracker, AddIssueTemplate, PageTemplateFile('your/copy/of/AddIssue.zpt', globals())) 2) Override the SubmitIssue() method in your monkey patch. Copy all the code from IssueTracker.py and start adding stuff for your own fields. Patch it in like this: from Products.IssueTrackerProduct.IssueTracker import IssueTracker setattr(IssueTracker, 'SubmitIssue', YourOwnSubmitIssueFunction) A lot of people have been asking the same question. Perhaps it's time I write something more robust for all people to be able to do this. I'm busy on another project at the moment so don't expect any quick results I'm afraid. If you stay on the list there are plenty of other people who will be able to help you when you get stuck. Peter On 6/20/07, Samir Mishra <sam...@cb...> wrote: > Hello, > > I need two custom fields (for example) on the AddIssue page -- telephone number, best call-back time -- for the current app I'm trying to set up. Is there an easy way to do this? > > Thanks in advance. BTW great functionality in Issue Tracker out of the box!! > > Regards, > Sam > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Issuetracker-development mailing list > Iss...@li... > https://lists.sourceforge.net/lists/listinfo/issuetracker-development > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com |