JIRA5rest-config-CrosslinkUrlField.pxml

A simple configuration which can be used to copy Bugs from JIRA to Defects in CA Agile Central. When copy has completed, both the Bug in JIRA and the Defect in CA Agile Central will have a clickable link to the artifact in the other system.

Below are two sections relating to this JIRA connector run:

  1. The configuration file
  2. The logfile output

Sample Configuration File

<!-- **********************************************************************
FILE:    JIRA5rest-config-CrosslinkUrlField.pxml

PURPOSE: Test the <CrosslinkUrlField> featue of Rally's JIRA5rest connector.

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>
        <CrosslinkUrlField>JIRAPR01Url</CrosslinkUrlField>
    </RallyConnection>

    <JiraRestConnection>
        <Url>Your-JIRA-URL</Url>
        <User>Your-JIRA-Username</User>
        <Password>Your-JIRA-Password</Password>
        <ArtifactType>Bug</ArtifactType>
        <Project>Your-JIRA-Project</Project>
        <ExternalIDField>Your-JIRA-ExternalID</ExternalIDField>
        <ExternalEndUserIDField>RallyFormattedID</ExternalEndUserIDField>
        <CrosslinkUrlField>RallyURL</CrosslinkUrlField>
    </JiraRestConnection>

    <Connector>
        <FieldMapping>
            <Field><Rally>Name</Rally>        <Other>Summary</Other>        </Field>
            <Field><Rally>Description</Rally> <Other>Description</Other>    </Field>
        </FieldMapping>
    </Connector>

    <ConnectorRunner>
        <Preview>False</Preview>
        <LogLevel>Debug</LogLevel>
        <Services>COPY_JIRA_TO_RALLY</Services>
    </ConnectorRunner>
</Config>

Log File Snippet from Connector Run

****************************************************************************************
     rally2_jira-rest_connector
         pid: 81715
         starting at: 2013-07-08 22:12:34 Z
         cwd: /Volumes/jpkole/Rally-Connectors/JIRA-rest/rundir
         configs: JIRA5rest-config-CrosslinkUrlField.xml
         interval: -1
         connector-version: 3.1.0-1002-master-9c72ac454f242d92fac9dbdd83b4b83b0263ed3e
****************************************************************************************
  ANY : ConnectorRunner.block in run - processing to commence using content from x059-crosslink.xml
  ANY : Class.read_config_file - x059-crosslink.xml last modified 2013-07-08 22:09:08 UTC, size: 1366 chars
  ANY : RallyConnection.initialize - Initializing Rally connection version 2.9.1
 INFO : RallyConnection.initialize - Rally Web Services version 1.16
  ANY : JiraRestConnection.initialize - Initializing JIRA connection version 3.2.0
 INFO : Class.read_workflow_file - jira_workflow.xml
 INFO : Connector.initialize - Ruby platform x86_64-darwin11.4.2
 INFO : Connector.initialize - Ruby version 1.9.3
 INFO : JiraRestConnection.connect - Connecting to JIRA at http://ubujira1:8080
DEBUG : RallyJest::JiraProxy.initialize - JiraProxy config arg content: {:url=>"http://ubujira:8080", :user=>"********", :password=>"*****", .....
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/user?username=testuser
DEBUG : RallyJest::JiraComm.execute_request - {"self":"http://ubujira1:8080/rest/api/2/user?username=testuser",.....
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/issuetype
DEBUG : RallyJest::JiraComm.execute_request - [{"self":"http://ubujira1:8080/rest/api/2/issuetype/6",.....
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/status
DEBUG : RallyJest::JiraComm.execute_request - [{"self":"http://ubujira1:8080/rest/api/2/status/1",.....
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/priority
DEBUG : RallyJest::JiraComm.execute_request - [{"self":"http://ubujira1:8080/rest/api/2/priority/1",.....
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/resolution
DEBUG : RallyJest::JiraComm.execute_request - [{"self":"http://ubujira1:8080/rest/api/2/resolution/1",.....
 INFO : JiraRestConnection.connect - Using RallyJest version 1.1.10
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/serverInfo
DEBUG : RallyJest::JiraComm.execute_request - {"baseUrl":"http://ubujira1:8080","version":"5.2.11",.....
 INFO : JiraRestConnection.connect - Connected to JIRA at http://ubujira1:8080, (version 5.2.11)
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2//mypermissions?projectKey=NM
DEBUG : RallyJest::JiraComm.execute_request - {"permissions":{"EDIT_ISSUE":{"id":"12","key":"EDIT_ISSUE","name":"Edit Issues",.....
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/project
DEBUG : RallyJest::JiraComm.execute_request - [{"self":"http://ubujira1:8080/rest/api/2/project/APX",.....
 INFO : JiraRestConnection.validate_project - Using project key 'NM' associated with the project name you specified: 'NM'
 INFO : JiraRestConnection.validate_project - Confirmed that Jira project NM is accessible
DEBUG : JiraRestConnection.connect - Collected JIRA issue types: Epic, Regulation, Story, New Feature, Bug, Technical task, Sub-task, Task, Improvement
 INFO : JiraRestConnection.connect - JIRA connection issue type: |Bug|
 INFO : RallyConnection.connect - Connecting to Rally at https://rally1.rallydev.com/slm as user [email protected]
DEBUG : RallyConnection.connect - Looking up workspace - JP's Workspace Playground
DEBUG : RallyConnection.connect - Looking up projects
 INFO : RallyConnection.connect - Connected to Rally at https://rally1.rallydev.com/slm -  Workspace: JP's Workspace Playground
 INFO : RallyConnection.connect -   Projects: PR01 - Brewing - Beer - All Grain
 INFO : Connector.validate - Beginning validation
DEBUG : RallyConnection.validate - Rally Connection - user entry "[email protected]" detected in config file
DEBUG : RallyConnection.validate - Rally Connection - password entry detected in config file
DEBUG : RallyConnection.validate - Rally Connection - artifact type "defect" validated
 WARN : RallyConnection.check_for_warnings - <Warnings>
    <OperationResultWarning>API status is Deprecated and will become Not Supported on 2013-Oct-01</OperationResultWarning>
  </Warnings>
DEBUG : RallyConnection.validate - Rally Connection - IDField entry "ObjectID" validated
DEBUG : RallyConnection.validate - Rally Connection - ExternalIDField entry "JIRAPR01ExtID" validated
DEBUG : RallyConnection.validate - Rally Connection - FieldHandler target fields existence validated
DEBUG : RallyConnection.validate - Rally Connection - Field Defaults settings validated
DEBUG : Connector.validate - RallyConnection validate succeeded
DEBUG : JiraRestConnection.validate - JIRA Connection - user entry "testuser" detected in config file
DEBUG : JiraRestConnection.validate - JIRA Connection - password entry detected in config file
DEBUG : JiraRestConnection.validate - JIRA Connection - artifact type "Bug" validated
DEBUG : JiraRestConnection.validate - JIRA Connection - IDField entry "key" validated
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/issue/createmeta?project.....
DEBUG : RallyJest::JiraComm.execute_request - {"expand":"projects","projects":[{"expand":"issuetypes",.....
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/search?jql=project = .....
DEBUG : RallyJest::JiraComm.execute_request - {"expand":"names,schema","startAt":0,"maxResults":1,....
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/issue/NM-158/editmeta?projectKeys=.....
DEBUG : RallyJest::JiraComm.execute_request - {"fields":{"summary":{"required":true,.....
DEBUG : JiraRestConnection.validate - JIRA Connection - ExternalIDField entry "RallyID" validated
DEBUG : JiraRestConnection.validate - JIRA Connection - FieldHandler target fields existence validated
DEBUG : JiraRestConnection.validate - JIRA Connection - Field Defaults settings validated
DEBUG : Connector.validate - JIRA Connection validate succeeded
DEBUG : Connector.block in validate - RallyConnection field_mapping target "Name" existence validated
DEBUG : Connector.block in validate - JIRA Connection field_mapping target "Summary" existence validated
DEBUG : Connector.block in validate - RallyConnection field_mapping target "Description" existence validated
DEBUG : Connector.block in validate - JIRA Connection field_mapping target "Description" existence validated
 INFO : Connector.validate - Validation complete
  ANY : ConnectorRunner.run_services - Last Run 2013-07-08 21:33:42 UTC  --- Now 2013-07-08 22:12:43 UTC
  ANY : ConnectorRunner.process_service - Starting Service COPY_JIRA_TO_RALLY
 INFO : JiraRestConnection.find_new - find_new query: type="Bug" and project = "NM" and "RallyID" = -1 and MoveToRally = No
DEBUG : RallyJest::JiraProxy.getIssuesWithJql - Initial jql: type="Bug" and project = "NM" and "RallyID" = -1 and MoveToRally = No
DEBUG : RallyJest::JiraProxy.getIssuesWithJql - Updated jql: type="Bug" and project = "NM" and "RallyID" = -1 and MoveToRally = No
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/search?jql=type="Bug" and .....
DEBUG : RallyJest::JiraComm.execute_request - {"expand":"names,schema","startAt":0,"maxResults":50,"total":1,"issues":.....
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - Jira Issue Instance: NM-158
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - issue_type: |Bug|
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - Calling ensureMetaInformationSupport for proj_key: NM, issue_type: Bug
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - Attempting to obtain a JiraIssue instance for NM-158
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - Obtained JiraIssue for NM-158
 INFO : JiraRestConnection.find_new - Found 1 new issues in JIRA
 INFO : Connector.copy_to_rally - Copy ID NM-158 to Rally
DEBUG : Connector.block in map_fields_to_rally -   Mapping Summary(another defect with list) - to - Name(another defect with list)
DEBUG : Connector.block in map_fields_to_rally -   Mapping Description(test1 <div>test2</div>) - to - Description(test1<div>test2</div>)
 INFO : RallyConnection.create_internal -   Created DE440
DEBUG : JiraRestConnection.update_internal - int_work_item: {"RallyID"=>"12828211660", "RallyFormattedID"=>"DE440",
                                          "RallyURL"=>"https://rally1.rallydev.com/slm/#/detail/defect/12828211660"}
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a PUT request for endpoint: /rest/api/2/issue/NM-158
DEBUG : RallyJest::JiraComm.block in execute_request - issuing a GET request for endpoint: /rest/api/2/issue/NM-158
DEBUG : RallyJest::JiraComm.execute_request - {"expand":"renderedFields,names,schema,transitions,operations,editmeta,changelog",.....
DEBUG : RallyJest::JiraProxy.getIssue - getIssue(NM-158) returned status of 200
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - Jira Issue Instance: NM-158
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - issue_type: |Bug|
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - Calling ensureMetaInformationSupport for proj_key: NM, issue_type: Bug
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - Attempting to obtain a JiraIssue instance for NM-158
DEBUG : RallyJest::JiraProxy.makeAnIssueInstance - Obtained JiraIssue for NM-158
 INFO : Connector.copy_to_rally - JIRA Bug NM-158 copied to Rally defect DE440
  ANY : ConnectorRunner.process_service - Finished Service COPY_JIRA_TO_RALLY
 INFO : JiraRestConnection.disconnect - Disconnected from JIRA
  ANY : ConnectorRunner.run_services - time file written with value of 2013-07-08 22:12:43 UTC
  ANY : ConnectorRunner.block in log_service_statistics - x059-crosslink.xml: 1 items copied from Jira to Rally 
  ANY : ConnectorRunner.log_service_statistics - x059-crosslink.xml: service run took 10 seconds

 

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.