About EA Connector for Trac Attribute Mapping

Last update: 29-Sep-2018

Setting Format

  • Setting per line
  • A line is devided by the delimiter (any of <- / <-> / -> / <+ / <+> / +> / <= / <=> / =>) and "," before and after the delimter
    • The string before the delimeter is used as Attribute String for EA
    • The direction and timing of devided string (any of <- / <-> / -> / <+ / <+> / +> / <= / <=> / =>)
    • The string after the delimeter is used as Attribute String for Trac
  • Attribute Strings
    • Attribute Name
    • Attribute Name(Extension String)
    • "Immediate Value"
  • Attribute Names
    • EA
      • Attribute Names of API Element Type "string"
      • TaggedValue(Tag Name)
      • TaggedValueMemo(Tag Name)
      • Keywords
      • Notes_HTML
      • RelationshipIDsString(Extension String/EA Connector Type)
      • Relationships(EA Connector Type)
      • ChildDiagrams
      • LinkedDocment
      Get Only : RelationshipIDsString / ChildDiagrams / LinkedDocment
      Set Only : Relationships
    • Trac
      • Attribute Names of Ticket in XMLRPC
        • ID
        • Summary
        • Description
        • Type
        • Reporter
        • Owner
        • Cc
        • Priority
        • Status
        • Component
        • Milestone
        • Version
        • Keywords
        • Resolution
      • ChangeLogsString
      • ChangeLogsDescString
      • TicketIDsInDescription
      • TicketIDsInComments
      • CustomField(Field Name)
      Get Only : ChangeLogsString / ChangeLogsDescString / TicketIDsInDescription / TicketIDsInComments

Interpretation by EA Connector for Trac

  • A blank line is ignored
  • A line starting with # is ignored
  • String after ,# in the middle of a line is ignored
  • A line without delimiters is igonored
  • Process in order from the first line
  • Process only lines with the delimiter <- / <-> / <+ / <+> when Attributes import to new element
  • Process only lines with the delimiter <- / <-> / <= / <=> when Attributes import to existing element
  • Process only lines with the delimiter -> / <-> / +> / <+> when Attributes export to new ticket
  • Process only lines with the delimiter -> / <-> / => / <=> when Attributes export to existing ticket
  • When Attribute Name of the setting side is the same, process it as an addition of the string
  • When Extension String exists, the process depends on the Attribute Name
    • Extension String is necessary for TaggedValue / TaggedValueMemo and the name of tagged value is set to Extension String
    • When a regular expression enclosed by "" is used at the acquisition side, the regular expression is applied to the string of Attribute Name value. If they match, the first part of the string enclosed by ( ) is set as the value. If not, the entire string of the Attribute Name value is set as the value

Default Attribute Mapping

EA Connector for Trac Default Attribute Mapping

Enterprise Architect Elements AttributesDirectionTrac Tickets AttributesSetting
Name or Short Description with IDSummaryName,<-,"#"
Name,<-,ID
Name,<-," "
Name,<-,Summary
Name("^#[0-9]+ ?(.*)$"),->,Summary
Notes (HTML format)DescriptionNotes,<-,"Description\r\n"
Notes,<-,Description("^(.*)\r\n- Related\r\n")
Notes,<-,"\r\n- Change Log\r\n"
Notes,<-,ChangeLogsString
Notes("^- Description\r\n(.*)\r\n- Change Log"),->,Description
NotesChange History
AuthorOwned byAuthor,<->,Owner
VersionVersionVersion,<->,Version
Key WordsKeywordsKeywords,<->,Keywords
TaggedValue (TracReporter)ReportedTaggedValue(TracReporter),<-,Reporter
TaggedValue (TracMilestone)MilestoneTaggedValue(TracMilestone),<->,Milestone
TaggedValue (TracComponent)ComponentTaggedValue(TracComponent),<->,Component
TaggedValue (TracCc)CcTaggedValue(TracCc),<->,Cc
TaggedValue (TracType)TypeTaggedValue(TracType),<-,Type
PriorityPriorityPriority,<-,Priority
TaggedValue (TracPriority)PriorityTaggedValue(TracPriority),<->,Priority
StatusStatusStatus,<-,Status
TaggedValue (TracStatus)StatusTaggedValue(TracStatus),<-,Status
Child diagramsAttachmentsChildDiagrams,->,Attachments
Linked documentAttachmentsLinkedDocument,->,Attachments
Association RelationshipsLinks to tickets in the descriptionRelationships(Association),<-,TicketIDsInDescription
Association RelationshipsLinks to tickets in the commentRelationships(Association),<-,TicketIDsInComments
Association RelationshipsDescriptionRelationshipIDsString("\r\n- Related\r\n"/Association),->,Description
(Trac Update Action)"leave",->,Action