You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ The latest version supports JIRA and Microsoft VSTS.
6
6
If your provider is not one of these, check out this other repository: https://github.com/CopadoSolutions/CopadoIntegrations
7
7
8
8
# 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.
10
10
11
11
We have commented the code with instructions to help with the customization process.
12
12
@@ -16,15 +16,14 @@ Installation instructions can be found below.
16
16
17
17
# Installation instructions
18
18
To install the application, use one of the below URLs:
# Getting started with Copado Change Management Integrations
23
-
24
23
In order to customize your integration, follow these steps:
25
24
26
25
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.
28
27
29
28
- A Jira endpoint might look as follows: https://COMPANY_DOMAIN_NAME.atlassian.net/rest/api/2/
30
29
@@ -35,8 +34,8 @@ Note: For Microsoft VSTS, it is required to provide your personal access token i
35
34
36
35
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.
37
36
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.
40
39
41
40
4) Set the fields mappings for the integration.
42
41
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:
52
51
- Target Field Type. String or object types. This type is used for the JSON file creation.
53
52
54
53
### Mandatory Field Mapping records for both JIRA and VSTS:
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
60
63
61
64
## New Apex Class - ScheduleUserStoryFetch
62
65
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.
63
66
64
67
## New Process Builder Flow - SendUpdatedValues2TP
65
68
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.
66
69
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.**
75
71
76
72
## Callout Logs
77
73
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:
86
82
87
83
This logging system was implemented to handle the characteristics of this integration (future callouts) for a better error handling.
88
84
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.
0 commit comments