dstdia / CopadoIntegrations

Easily integrate your external project management system with Copado. This repository will hold the base layer of the integration code that may be extended by the community.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copado Integrations

Easily integrate your external project management system with Copado. This repository will hold the base layer of the integration code that may be extended by the community.

The latest version supports JIRA, VersionOne, Rally, Agile Accelerator, ScrumDo and TargetProcess

How does it work?

Copado Solutions has built the authentication module as well as the framework for retrieving user stories and inserting these into the Copado sObject called, "User Story". The mapping is also handled by the integration. Both the data being queried from the data source as well as the mapping can be modified. We have commented the code with instructions to help with the customisation process.

The code & all the components are contained in an unmanaged package and available within this repository as a backup.

Installation instructions can be found below.

What gets imported into Copado?

By default the following fields get imported:

  • User Story Title (User_Story_Title__c)
  • Status (Status__c)
  • Project (Project__c)
  • Functional Specifications (Functional_Specifications__c)

Installation instructions

To install the application use one of the below URLs.

Customisation

In order to customise the mappings for the fields being retrieved, you will need to search for the section in the code labelled, "FIELD MAPPINGS" in the CopadoSyncUserStories Visualforce page.

Getting started

  1. The User Story Status picklist values should match those of your external system.

  2. The JIRA remote site setting contains a domain that needs to be changed.

  3. Page layout modifications (see below)

Once the package is installed, you will need to setup a Change Management Integration Credential. This is done from the "Change Management Integrations" tab.

Once the integration credentials have been setup, you will need to create a new project or edit an existing project and complete the following two fields.

Page Layout modifications

Fields

  • Change Management Integration - This lookup field looks up the credential you just created.
  • External Id - This external Id field needs the Id of the project for which we will import the User Stories.
  • Workspace Id - Only relevant for Rally when using workspaces.

Buttons

  • Add button called, "Sync External User Stories" to the project layout.

Remote Sites Settings

Some Remote Sites settings have been included for your convenience. The Jira Remote Sites settings currently point to a repository called, "copado-test2". This will need to be changed. You may delete the remote sites settings that you will not need.

Once everything is setup, you can press the "Sync External User Stories" button.

New Apex Jira-Copado integration

The latest version of Copado Integrations contains a set of Apex classes in which you can edit your Jira-Copado field mappings and schedule this integration. This integration relies in the same Change Management Record you need to create prior the integration.

Fields mapping

The User Story and Epic fields are mapped into the following class: JiraIssueFetcher_Batch. The mappings are implemented in the following methods: MapJIRAEpic, MapJIRAFields.

On demand import

You can invoke the following method in order to retrieve Jira's issues and epics: JiraIssueFetcher_Batch.FetchIssues();

Scheduled import

Replace the "cron_expression" as per your requirements and run the following script in your Developer Console: JiraIssueFetcher_Schedule sch = new JiraIssueFetcher_Schedule(); System.schedule('JiraIssueFetcher', cron_expression, sch);

About

Easily integrate your external project management system with Copado. This repository will hold the base layer of the integration code that may be extended by the community.

License:GNU General Public License v2.0


Languages

Language:Apex 100.0%