Rally - Jira - Jira-config-RallyJiraCommentLinker.pxml
search cancel

Rally - Jira - Jira-config-RallyJiraCommentLinker.pxml

book

Article ID: 125023

calendar_today

Updated On:

Products

Rally On-Premise Rally SaaS

Issue/Introduction

Use this configuration file to copy Discussions or Comments between CA Agile Central and JIRA.

Environment

Release:
Component: ACSAAS

Resolution

The following sections relate to this JIRA connector run:

Sample Configuration File

<!-- **********************************************************************
FILE:    Jira-config-RallyJiraCommentLinker.pxml

PURPOSE: Used to copy Discussions or Comments between Rally and JIRA.

         WARNING: There is a known limitation with this feature. Once the
         Rally Discussions have been sync'ed with JIRA Comments, they should
         never be modified in JIRA, otherwise it will cause a recursive copy,
         back and forth between the two systems, with the Discussions/Comments
         growing with each iteration. This occurs because the connector compares
         the two sets of Discussions/Comments, and if they are not identical,
         it assumes they need to be re-synced; however, Rally Discussions
         are read-only (once they have been created), so an edited Comment
         in JIRA is copied to Rally as a new Discussion, and at that point the
         Discussions/Comments between the two system will be out of sync again,
         and this looping will continue indefinitely.

USAGE:   Replace all the "Your-..." strings below with values appropriate
         for your environment.
*********************************************************************** -->
<Config>
    <RallyConnection>
        <Url>Your-Rally-URL</Url>
        <WorkspaceName>Your-Rally-Workspace</WorkspaceName>
        <Projects>
            <Project>Your-Rally-Project</Project>
        </Projects>
        <User>Your-Rally-Username</User>
        <Password>Your-Rally-Password</Password>
        <ArtifactType>Defect</ArtifactType>
        <ExternalIDField>Your-Rally-ExternalID</ExternalIDField>
    </RallyConnection>

    <JiraConnection>
        <Url>Your-JIRA-URL</Url>
        <Project>Your-JIRA-Project</Project>
        <User>Your-JIRA-Username</User>
        <Password>Your-JIRA-Password</Password>
        <ArtifactType>Bug</ArtifactType>
        <ExternalIDField>Your-JIRA-ExternalID</ExternalIDField>
    </JiraConnection>

    <Connector>
        <FieldMapping>
            <Field><Rally>Name</Rally>        <Other>Summary</Other></Field>
            <Field><Rally>Description</Rally> <Other>Description</Other></Field>
        <!-- Do not map this field, it will happen automagically.
            <Field><Rally>Discussion</Rally>  <Other>Comment</Other></Field>
        -->
        </FieldMapping>

        <RelatedObjectLinkers>
            <RallyJiraCommentLinker />
        </RelatedObjectLinkers>
    </Connector>

    <ConnectorRunner>
        <Preview>True</Preview>
        <Services>COPY_JIRA_TO_RALLY,  COPY_RALLY_TO_JIRA</Services>
    </ConnectorRunner>
</Config>

Log File from Connector Run

....
  INFO : Connector.validate - Validation complete
  INFO : ConnectorRunner.run_services - Last Run 2012-08-14 15:26:46 UTC  --- Now 2012-08-14 15:31:46 UTC
  INFO : ConnectorRunner.process_service - Starting Service COPY_JIRA_TO_RALLY
 DEBUG : Finding method getIssuesFromJqlSearch
  INFO : JiraConnection.find_new - Found 1 new issues in JIRA
  INFO : Connector.copy_to_rally - Copy to Rally
 DEBUG : Connector.block in map_fields_to_rally -   Mapping Summary(JP-1) - to - Name(JP-1)
 DEBUG : Connector.block in map_fields_to_rally -   Mapping Description(Prison hooch is swill.) - to - Description(Prison hooch is swill.)
  INFO : RallyConnection.create_internal -   Created DE310
 DEBUG : Finding method updateIssue
  INFO : Connector.copy_to_rally - JIRA bug JPPROJ-2 copied to Rally defect DE310
 DEBUG : Finding method getComments
 DEBUG : RallyJiraCommentLinker.block in link_related_objects_in_rally - Adding comment: This is JIRA "Comment" #2 on bug JPPROJ-2/JP1. to Rally for DE310
 DEBUG : RallyJiraCommentLinker.block in link_related_objects_in_rally - Adding comment: This is JIRA "Comment" #1 on bug JPPROJ-2/JP1. to Rally for DE310
 DEBUG : RallyJiraCommentLinker.block in link_related_objects_in_rally - Adding comment: This is the singular field to Rally for DE310
 DEBUG : RallyJiraCommentLinker.block in link_related_objects_in_rally - Adding comment: xxxx to Rally for DE310
  INFO : ConnectorRunner.process_service - Finished Service COPY_JIRA_TO_RALLY
  INFO : ConnectorRunner.process_service - Starting Service COPY_RALLY_TO_JIRA
  INFO : RallyConnection.find_new - Find New Rally defects
  INFO : RallyConnection.find_new - find_new query: JIRAPR01ExtID = "" and Project = PR01 - Brewing - Beer - All Grain and formatted_i_d = "DE11"
  INFO : RallyConnection.find_new -   Found 1 new defects in Rally
  INFO : Connector.copy_to_other - Copy to JIRA
 DEBUG : Connector.block in map_fields_to_other -   Mapping Name(Error found in TC1: Test Case #1) - to - Summary(Error found in TC1: Test Case #1)
 DEBUG : Connector.block in map_fields_to_other -   Mapping Description(xxxx) - to - Description(xxxx)
 DEBUG : Finding method createIssue
  INFO : RallyConnection.update_internal -   Updating DE11
  INFO : Connector.copy_to_other - Rally defect DE11 copied to JIRA bug JPPROJ-25
 DEBUG : Finding method getComments
 DEBUG : RallyJiraCommentLinker.block in link_related_objects_in_other - Copying comment: This is Rally "Discussion" #2 on defect DE11. from Rally DE11
 DEBUG : RallyJiraCommentLinker.block in link_related_objects_in_other - Copying comment: This is Rally "Discussion" #1 on defect DE11. from Rally DE11
 DEBUG : Finding method addComment
 DEBUG : Finding method addComment
  INFO : ConnectorRunner.process_service - Finished Service COPY_RALLY_TO_JIRA
....