Jira-config-Emailer-NoAuth.pxml

Test the feature of CA Agile Central's JIRA (and others) connector. This will send a non-authenticated email to the designated user only when ERRORs or WARNINGs occur.

Below are three sections relating to this JIRA connector run:

  1. The configuration file
  2. The logfile output
  3. The email sent to the user

Sample Configuration File

<!-- **********************************************************************
FILE:    Jira-config-Emailer-NoAuth.pxml

PURPOSE: Test the <Emailer> featue of Rally's JIRA (and others) connector.
         This will send a non-authenticated email to the designated user
         only when ERRORs or WARNINGs occur.

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>
            <!-- I use the following field mapping to force the generation of
                 a WARNING so the <Emailer> section below will be triggered.
            -->
            <Field><Rally>Priority</Rally>    <Other>Priority</Other></Field>
        </FieldMapping>
    </Connector>

    <ConnectorRunner>
        <Preview>False</Preview>
        <LogLevel>Debug</LogLevel>
        <Services>COPY_RALLY_TO_JIRA</Services>
        <!--The following <Emailer> section is for specifying the SMTP server - with NO Authentication. -->
        <Emailer>
            <!-- The following <Level> tag can be set to either "Error" or "Warning" only.
                     - Specifying "Warning" will send email on errors and warnings.
                     - Specifying "Error" will send email on errors only.
                     - An email is sent only when issues occur, not when everything is OK.
            -->
            <Level>Warning</Level>
            <SendEmailFrom>Your-Email-Address</SendEmailFrom>
            <SendEmailTo>Your-Email-Address</SendEmailTo>
            <SMTPServer>Your-Email-Server</SMTPServer>
            <SMTPPort>25</SMTPPort>
        </Emailer>
    </ConnectorRunner>
</Config>

Log File Snippet from Connector Run

[2012-09-25 16:30:58 Z]  INFO : ConnectorRunner.run_services - Last Run 2012-09-25 16:28:42 UTC  --- Now 2012-09-25 16:30:58 UTC
[2012-09-25 16:30:58 Z]  INFO : ConnectorRunner.process_service - Starting Service COPY_RALLY_TO_JIRA
[2012-09-25 16:30:58 Z]  INFO : RallyConnection.find_new - Find New Rally defects
[2012-09-25 16:30:58 Z]  INFO : RallyConnection.find_new - find_new query: JIRAPR01ExtID = "" and Project = PR01 - Brewing - Beer - All Grain
[2012-09-25 16:30:58 Z]  INFO : RallyConnection.find_new -   Found 1 new defects in Rally
[2012-09-25 16:30:58 Z]  INFO : Connector.copy_to_other - Copy to JIRA
[2012-09-25 16:30:58 Z] DEBUG : Connector.block in map_fields_to_other -   Mapping Name(JP test date FH) - to - Summary(JP test date FH)
[2012-09-25 16:30:58 Z] DEBUG : Connector.block in map_fields_to_other -   Mapping Description(xxxx) - to - Description(xxxx)
[2012-09-25 16:30:58 Z] DEBUG : Connector.block in map_fields_to_other -   Mapping Priority(Resolve Immediately) - to - Priority(Resolve Immediately)
[2012-09-25 16:30:58 Z]  WARN : JiraConnection.initialize - Invalid value Resolve Immediately for field priority
[2012-09-25 16:30:58 Z]  WARN : ConnectorRunner.exception - Message Invalid value Resolve Immediately for field priority
[2012-09-25 16:30:58 Z]  INFO : ConnectorRunner.process_service - Finished Service COPY_RALLY_TO_JIRA
[2012-09-25 16:30:58 Z] DEBUG : Finding method logout
[2012-09-25 16:30:58 Z]  INFO : JiraConnection.disconnect - Disconnected from JIRA
[2012-09-25 16:30:58 Z]  INFO : ConnectorRunner.run_services - time file written with value of 2012-09-25 16:30:58 UTC
[2012-09-25 16:30:58 Z]  INFO : ConnectorRunner.block in log_service_statistics - Jira-config-Emailer-NoAuth.pxml: 0 items copied from Rally to Jira 
[2012-09-25 16:30:58 Z]  INFO : ConnectorRunner.log_service_statistics - Jira-config-Emailer-NoAuth.pxml: service run took 30 seconds

The Email Sent to the User from the Connector

Return-Path: <[email protected]>
Received: from psmtp.com (na3sys009amx193.postini.com [74.125.149.174])
        by mx.google.com with SMTP id nz5si1178485pbb.346.2012.09.25.09.31.00
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 25 Sep 2012 09:31:01 -0700 (PDT)
Message-Id: <[email protected]>
Date: Tue, 25 Sep 2012 10:30:58 -0600 (MDT)
From: [email protected]
To: [email protected]
Subject: rally2_jira_connector.rb Errors for Jira-config-Emailer-NoAuth.pxml
Date: 2012-09-25T10:30:58-06:00

------------------------------------------------------------------------------------------------------------

Warnings:

2012-09-25 16:30:58 Z - JiraConnection.initialize - Invalid value Resolve Immediately for field priority
2012-09-25 16:30:58 Z - ConnectorRunner.exception - Message Invalid value Resolve Immediately for field priority

Feedback

Need more help? The CA Agile Central Community is your one-stop shop for self-service and support. To submit feedback or cases to CA Agile Central Support, find answers, and collaborate with others, please join us in the CA Agile Central Community.