Rally - HP ALM - QC-config-concat.pxml
search cancel

Rally - HP ALM - QC-config-concat.pxml

book

Article ID: 125060

calendar_today

Updated On:

Products

Rally On-Premise Rally SaaS

Issue/Introduction

To demonstrate the use of the <OtherConcatFieldHandler>.



Environment

Release:
Component: ACSAAS

Resolution

Below are the 4 sections relating to this QC connector run:

  1. This configuration file: QC-config-concat-qc-2-rally.pxml
  2. This configuration file: QC-config-concat-rally-2-qc.pxml


 

Configuration File QC-config-concat-qc-2-rally.pxml

<!-- **********************************************************************
FILE:    QC-config-concat-qc-2-rally.pxml

PURPOSE: To demonstrate the use of the <OtherConcatFieldHandler>.

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>

        <QCConnection>
                <Url>Your-QC-URL</Url>
                <Domain>Your-QC-Domain</Domain>
                <Project>Your-QC-Project</Project>
                <User>Your-QC-Username</User>
                <Password>Your-QC-Password</Password>
                <ArtifactType>Bug</ArtifactType>
                <IDField>BG_BUG_ID</IDField>
                <ExternalIDField>Your-QC-ExternalID</ExternalIDField>
                <ExternalEndUserIDField>BG_USER_03</ExternalEndUserIDField>
                <CopySelectors>
                        <CopySelector>BG_BUG_ID = 13</CopySelector>
                </CopySelectors>
        </QCConnection>

        <Connector>
                <FieldMapping>
                        <Field><Rally>Name</Rally>              <Other>BG_SUMMARY</Other></Field>
                        <Field><Rally>Description</Rally>       <Other>BG_DESCRIPTION</Other></Field>
                        <Field><Rally>CreationDate</Rally>      <Other>BG_DETECTION_DATE</Other></Field>
                </FieldMapping>

                <OtherFieldHandlers>
                        <QCDatetimeToDateFieldHandler>
                                <FieldName>BG_DETECTION_DATE</FieldName>
                        </QCDatetimeToDateFieldHandler>

                        <OtherConcatFieldHandler>
                                <FieldName>BG_DESCRIPTION</FieldName>
                                <ConcatFields>
                                        <Field>BG_USER_06</Field>
                                        <Field>BG_USER_08</Field>
                                </ConcatFields>
                        </OtherConcatFieldHandler>
                </OtherFieldHandlers>
        </Connector>

        <ConnectorRunner>
                <Preview>false</Preview>
                <LogLevel>Debug</LogLevel>
                <Services>COPY_QC_TO_RALLY</Services>
        </ConnectorRunner>
</config>


Configuration File QC-config-concat-rally-2-qc.pxml

<!-- **********************************************************************
FILE:    QC-config-concat-rally-2-qc.pxml

PURPOSE: To demonstrate the use of the <RallyConcatFieldHandler>.

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>
                <CopySelectors>
                        <CopySelector>FormattedID = DE456</CopySelector>
                </CopySelectors>
        </RallyConnection>

        <QCConnection>
                <Url>Your-QC-URL</Url>
                <Domain>Your-QC-Domain</Domain>
                <Project>Your-QC-Project</Project>
                <User>Your-QC-Username</User>
                <Password>Your-QC-Password</Password>
                <ArtifactType>Bug</ArtifactType>
                <IDField>BG_BUG_ID</IDField>
                <ExternalIDField>Your-QC-ExternalID</ExternalIDField>
                <ExternalEndUserIDField>BG_USER_03</ExternalEndUserIDField>
                <FieldDefaults>
                        <Field><Name>BG_SEVERITY</Name> <Default>1-Low</Default></Field>
                </FieldDefaults>
        </QCConnection>

        <Connector>
                <FieldMapping>
                        <Field><Rally>Name</Rally>              <Other>BG_SUMMARY</Other></Field>
                        <Field><Rally>Description</Rally>       <Other>BG_DESCRIPTION</Other></Field>
                        <Field><Rally>CreationDate</Rally>      <Other>BG_DETECTION_DATE</Other></Field>
                </FieldMapping>

                <RallyFieldHandlers>
                        <RallyConcatFieldHandler>
                                <FieldName>Description</FieldName>
                                <ConcatFields>
                                        <Field>FoundInBuild</Field>
                                        <Field>FixedInBuild</Field>
                                </ConcatFields>
                        </RallyConcatFieldHandler>
                </RallyFieldHandlers>

                <OtherFieldHandlers>
                        <QCDatetimeToDateFieldHandler>
                                <FieldName>BG_DETECTION_DATE</FieldName>
                        </QCDatetimeToDateFieldHandler>
                </OtherFieldHandlers>
        </Connector>

        <ConnectorRunner>
                <Preview>false</Preview>
                <LogLevel>Debug</LogLevel>
                <Services>COPY_RALLY_TO_QC</Services>
        </ConnectorRunner>
</config>