[[PageOutline(2-5,Contents,pullout)]] = Trac Ticket to Salesforce ticket synchronization = == Description == Maintain synchronization if Trac tickets in !Salesforce. Trac tickets are reflected by the !Salesforce custom object, !Ticket__c and !Comment__c. !Ticket__c objects are linked to Cases via M2M relationship provided by the !CaseTicketLink__c custom object. Even though this is a M2M relation, Trac's uses a custom text field for the Case number, so it's essentially many-to-one. !Comment__c objects are related to !Ticket__c objects via the link custom object, !TicketCommentLink__cc. The related lists layouts are modified to display the related object fields rather then the object id. You need the "tracrpc" component installed and enabled for this plugin to work. You also need to add a custom field, "case_number", as shown below. This file gets copied to the "plugins" directory of the trac project. Example settings in trac.ini are: {{{ [components] tracrpc.* = enabled ticket2sforce.* = enabled ticketvalidator.* = enabled [ticket2sforce] username = yourSFusername password = yourSFpasswd sectoken = yourSFsecurityToken wsdl = partner.wsdl [ticket-custom] case_number = text case_number.label = Case Number [ticketvalidator] new.required = case_number }}} You will need to install the following Salesforce project artifacts using either the Eclipse SForce plugin or the ant-based migration tool. src/layouts/Case-Case Layout.layout src/layouts/Comment__c-Comment Layout.layout src/layouts/Ticket__c-Ticket Layout.layout src/layouts/TicketCommentLink__c-TicketCommentLink Leyout.layout src/objects/Ticket__c.object src/objects/Comment__c.object src/objects/CaseTicketLink__c.object src/objects/TicketCommentLink__c.object == Bugs/Feature Requests == Existing bugs and feature requests for TicketToSalesforcePlugin are [report:9?COMPONENT=TicketToSalesforcePlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=TicketToSalesforcePlugin&owner=chriswolf new ticket]. == Download == Download the zipped source from [download:tickettosalesforceplugin here]. == Source == You can check out TicketToSalesforcePlugin from [http://trac-hacks.org/svn/tickettosalesforceplugin here] using Subversion, or [source:tickettosalesforceplugin browse the source] with Trac. == Example == 1. !Install the custom objects and custom page layouts into your Salesforce org. 1. Generate the partner WSDL and copy it into your trac/projects//conf directory 1. Edit trac.ini to enable the tick2sforce component as well as setting the web service API credentials. == Recent Changes == [[ChangeLog(tickettosalesforceplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:chriswolf] [[BR]] '''Maintainer:''' [wiki:chriswolf] [[BR]] '''Contributors:'''