Jira Assets

  1.     Configurations for connecting
  2.     Configurations for synchronization and fields mapping
  3.     Creating Flow for synchronization between Jira Asset and Salesforce object
  4.     How to use Jira Asset Synchronization

Configurations for connecting

Create Named Credential to Jira.

Create one more Named Credential for using Jira Asset. Populate values:

Save Named Credential.

Content Image

Copy API Name of Named Credential.

Follow Custom Settings and click on ‘Manage’ near ‘Jira Admin Settings’.

Click the Edit button, paste API Name of Named Credential to ‘Assets Named Credentials’ field and save changes.

Content Image

Configure Jira Asset in Salesforce:

  • Follow Peeklogic Setup > Asset Settings > Add New Object Schema

Content Image

  • Choose the necessary Schema and save that.

Content Image

Configurations for synchronization and fields mapping

Go to Object Schema.

Content Image

 Select one of a Type of Object.

Content Image

In the tab ‘Attribute’, there are displayed all attributes of Schema Object.

Content Image

In the ‘Automations’ tab, there are configurations for synchronization:

  • Click the ‘New Automation’ button and follow the fields mapping between fields of the Salesforce object and attributes of the Shema Object in Jira. 

 

Content Image

  • Click ‘Save’.

Content Image

  • Populate the ‘Save The Result in The Object Field’ field by the Salesforce field if you would like to record the identifier of Jira Asset Object in Salesforce after creating the Asset Object in Jira.
  • Populate the ‘Asset Object External Field Name’ field by Jira field in order to save the ID of the Salesforce record. The value of this field is used for searching accorded an object in Jira for syncing.

Content Image

  • Click ‘+ Add’ button for fields mapping between the Salesforce object and Jira Asset object.
  • From the drop-down list, choose attribute of Asset object and field of Salesforce object.

Content Image

Content Image

  • For attributes such as Status and Select should map according values. 

Content Image

  • For attributes that have ‘Object reference’ Type, depending on the Cardinality value – map to field with Type ‘Lookup’ or value can be Junction object.

Content Image

Content Image

  • ‘Relationship Automation’ should be populated by automation according to which this object is synchronized in Jira.

Content Image

  • Save field mapping.

Content Image

The required mapping must be created for all types of asset objects if the relationships between them are to be synchronized.

 

Creating Flow for synchronization between Jira Asset and Salesforce object

For each type of object that needs to be synchronized, it is needed to create a Record-Triggered Flow.

Content Image

Choose a necessary object and set conditions for triggering.

Content Image

Added the Action element, choose Peeklogic Asset Synchronization:

  • automationId: ‘Automation Id’ from field mapping;
  • sOjbjectId: ID of Salesforce record.

Content Image

Save and Activate flow.

Content Image

This apex action is executed asynchronously. In the case of API errors or errors in SF, the current user receives a notification box containing the error.

Content Image

Notes

The synchronization logic is as follows:

First thing first, a search for the ID of the Jira Asset is performed in Salesforce. If there is an ID, the Jira object is updated.

 

If there is no ID in the Salesforce, a search is performed in Jira by the ‘Asset Object External Field Name’ field. This value is saved in the automation in the previous unit. If an object is found in Jira according to external Id, it will be updated and the key will be saved in Salesforce. If nothing is found – a new object will be created in Jira, and its key will be saved in Salesforce for further synchronization.

 

With regard to attributes with ‘Object reference’ Type, the logic of the ID search is similar. First, the ID in Salesforce is searched, if any, the attribute is filled with the appropriate value. If not, the search is carried out by the external ID in Jira (for this purpose, you selected the value Relationship Automation in the mapping in field mapping). If the appropriate object is found, the corresponding value will be written in the field. If nothing is found in Jira, this attribute of the object will not be synchronized.

 

How to use Jira Asset Synchronization

If your organization has a flow for automatically creating Jira Asset when a Salesforce record is created, just create a Salesforce record and Jira Asset will be created.
Field that was chosen in the ‘Save The Result in The Object Field’ field in Automation is populated by Jira Asset Object Id. 

Content Image

Automatically created Jira Asset has the populated fields that were mapped in Automation by value from Salesforce.

Content Image

Map in Automation any field to Id of Salesforce record and this field will be populated in Jira Asset object by Salesforce record Id.

Content Image

Besides, a Salesforce record can be displayed in Jira Asset as a button that redirects you to Salesforce. 

Just create a field with type URL in Jira Asset. Populate this field by URL of Salesforce record, click on the ‘Connect your Salesforce account’ button and login to Salesforce.

Content Image

The URL field has a button with the name of the Salesforce object and name of current Salesforce record. Press the button and you will be redirected to the current Salesforce record.

Content Image

Content Image

If your organization has a flow for automatically updating Jira Asset when a Salesforce record is updated, just update the fields of the Salesforce record that were mapped in Automation and these fields will be updated directly in Jira Asset. 

Content Image

Content Image

Attributes that have ‘Object reference’ Type and were mapped to fields with Type ‘Lookup’ or value can be Junction objects in Automation will be updated too.

Content Image

 

Ready to simplify your Salesforce integrations?

    Peeklogic AI Orchestrator