Skip to content

Commit a11839a

Browse files
authored
v1.2 Initial Release
1 parent 82981b7 commit a11839a

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

README.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The latest version supports JIRA and Microsoft VSTS.
66
If your provider is not one of these, check out this other repository: https://github.com/CopadoSolutions/CopadoIntegrations
77

88
# How does it work?
9-
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" and synchronizing them with the external provider when changes are detected. The field mapping is also handled by the integration process. Both, the data being queried from the data source as well as the mapping, can be modified by users depending on their needs.
9+
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" and synchronizing them with the external provider when changes are detected. The field mapping is also handled by the integration process. Both, the data being queried from the data source as well as the mapping, can be modified by users depending on their needs.
1010

1111
We have commented the code with instructions to help with the customization process.
1212

@@ -16,15 +16,14 @@ Installation instructions can be found below.
1616

1717
# Installation instructions
1818
To install the application, use one of the below URLs:
19-
- Production/Developer orgs: -----------------------------------------
20-
- Sandbox orgs: --------------------------------------
19+
- Production/Developer orgs: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t1r000001U3r0
20+
- Sandbox orgs: https://test.salesforce.com/packaging/installPackage.apexp?p0=04t1r000001U3r0
2121

2222
# Getting started with Copado Change Management Integrations
23-
2423
In order to customize your integration, follow these steps:
2524

2625
1) Create a Named Credentials record in Setup > Security > Named Credentials.
27-
Here, you will personalize your credentials with the authorization to the external system. To do that, create a new record for the named credentials, provide a name, the EndPoint URL and the fields for basic authentication.
26+
Here, you will personalize your credentials with the authorization to the external system. To do that, create a new record for the Named Credentials, provide a Name, the EndPoint URL and the fields for basic authentication.
2827

2928
- A Jira endpoint might look as follows: https://COMPANY_DOMAIN_NAME.atlassian.net/rest/api/2/
3029

@@ -35,8 +34,8 @@ Note: For Microsoft VSTS, it is required to provide your personal access token i
3534

3635
2) In Copado Integration Settings tab, create a new record with your external provider. During the record creation, provide a name (Copado Integration Setting Name field), select a provider from the picklist (External System field) and type the Named Credential you have just created (Named Credential field). It is very important to type the Named Credentials correctly since Named Credentials cannot be located through a lookup field.
3736

38-
3) Create a new Project to include all the user stories that will be synchronized.
39-
Go to Projects tab in Copado Change Management application and create a project for your user stories. Provide a name for it, your external provider’s project id (Project External Id field), provide also Workspace Id for Microsoft VSTS using the Query Id (found in the address bar as a parameter) and select the Copado Integration Setting you have just created for your external provider.
37+
3) Create a new Project to include all the User Stories that will be synchronized.
38+
Go to Projects tab in Copado Change Management application and create a Project for your User Stories. Provide a Name for it, your external provider’s Project Id (Project External Id field), provide also Workspace Id for Microsoft VSTS using the Query Id (found in the address bar as a parameter - a VSTS Query Id might look as follows: bd7cae54-f1d1-4687-b313-0c64ecdfe731) and select the Copado Integration Setting you have just created for your external provider.
4039

4140
4) Set the fields mappings for the integration.
4241
Within the Field Mapping related list of your integration project, you can add as many field mappings as you wish.
@@ -52,26 +51,23 @@ Optional fields:
5251
- Target Field Type. String or object types. This type is used for the JSON file creation.
5352

5453
### Mandatory Field Mapping records for both JIRA and VSTS:
54+
Salesforce_Field_Name__c | Third_Party_Field_Name__c | Exclude_from_tpu__c
55+
- copado__Project__c projectId true
56+
- External_Id__c id true(false for VSTS)
5557

56-
Salesforce_Field_Name__c | Third_Party_Field_Name__c | Exclude_from_tpu__c
57-
- copado__Project__c projectId true
58-
- External_Id__c id true(False for VSTS)
59-
58+
## Fields mapping by default
59+
In this repository you will find two files to be uploaded to your Salesforce Org. They contain a set of fields by default for both providers for an easy and quick setup.
60+
These files are:
61+
JIRA_Default_Field_Mappings.csv
62+
VSTS_Default_Field_Mappings.csv
6063

6164
## New Apex Class - ScheduleUserStoryFetch
6265
The new class ScheduleUserStoryFetch has been created to perform a bulk from the external provider to Salesforce. Depending on the configuration of its cron expression, it will carry out the bulk operation periodically. It will retrieve all the mapped fields and will update the Salesforce fields with the external data.
6366

6467
## New Process Builder Flow - SendUpdatedValues2TP
6568
A new Process Builder Flow has been created for updating changes in User Stories on the external provider. It is executed every time a change in a User Story is detected and will send the modified fields to the external object fields.
6669

67-
This Process Builder Flow is included as a template, but deactivated. Activating it will start sending updates to the External System on User Story Status change. Criteria may be modified or extended as per the customer requirements.
68-
69-
## Fields mapping by default
70-
In this repository you will find 2 files to be uploaded to your Salesforce Org. They contain a set of fields by default for both providers.
71-
These files are:
72-
JIRA Default Field Mappings.numbers
73-
VSTS Default Field Mappings.numbers
74-
70+
This Process Builder Flow is included as a template, and Active. Criteria may be modified or extended as per the customer requirements by versioning this Process Builder Flow. **Deactivating this Process Builder Flow may take the code coverage under deployment threshold.**
7571

7672
## Callout Logs
7773
On the User Story and the Project, there is a checkbox labelled as “Enable Logs” to add to the US or Project layout the logs created from that moment on. It is unchecked by default.
@@ -86,6 +82,11 @@ Some considerations when reading the logs:
8682

8783
This logging system was implemented to handle the characteristics of this integration (future callouts) for a better error handling.
8884

85+
## Best Practices recommendation
86+
When you are integrating Copado User Stories with an external source, it is common that this external source becomes the master of some of the data being synchronized.
87+
We highly recommend blocking in the User Story Layout as "read-only" the fields you want your external source to be the master off, and exclude the Copado field from the synchronization in the Field Mappings Object.
88+
This resource will help avoiding sync conflicts while keeping the technical solution as simple as possible for a better maintenance and troubleshooting.
89+
8990

9091

9192

0 commit comments

Comments
 (0)