Rally - Jira - Jira-config-Emailer-NoAuth.pxml
search cancel

Rally - Jira - Jira-config-Emailer-NoAuth.pxml

book

Article ID: 125020

calendar_today

Updated On:

Products

Rally On-Premise Rally SaaS

Issue/Introduction

Test the email 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.

Environment

Release:
Component: ACSAAS

Resolution

The following three sections relate to this JIRA connector run:

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 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

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