Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As a services manager, you receive requests often from different customers with different needs. Once you prepare a statement of work(SOW), you

would

will need to access the legal team for final contract/proposal preparation. You'll now want to have a seamless workflow between the services team (working on Jira) and the legal team (who are working on Salesforce).

This use case shows you how to build a bidirectional workflow between Salesforce and Jira using Connector for Salesforce & Jira. Together with Jira's built-in functions like custom fields, workflows, post-functions, and Automation for Jira.

On this page:

Table of Contents
minLevel1
maxLevel3
outlinefalse
styledisc
typelist
printabletrue

Ingredients

You will need the following installed on your Jira environment. This works for both Jira Cloud and Jira Server.

You will need some basic understanding on the following Jira features:

Complete scenario

The Teams:

  1. The team that resides on Salesforce is the Legal team.

  2. The team that resides on Jira is the support and services team

The Scenario:

  1. A customer reaches out to the organization's support team seeking their assistance.

  2. Support/Services then creates an internal Jira ticket for their request of a SOW/pre-contract.

  3. The created Jira ticket is synced with a Legal Case in Salesforce.

  4. The Legal team will find new Case created in Salesforce and work on them.

  5. The Legal team updates the object in Salesforce once they have provided what they need and it'll automatically get updated in Jira.

  6. The Services team that is working with the customer can now update the customer with the information that they need.

Building this use case

Child pages (Children Display)

⚙️ Part 1 Setup Salesforce

  1. We will be using

the 
  1. the Case

 object
  1.  object. To make things easier across the teams that use Salesforce, we will be creating

a 
  1. Record Type

 in
  1.  in Salesforce and label it

as 
  1. as Legal Case

  2. Navigate

to 
  1. to Setup > Object Manager > Case > Record Types
    Image Modified

  2. Add a new Record Type: Legal Case

  3. This will then show up on the object

as 
  1. as Case Record

Type 
  1. Type to differentiate what type of Case is it:
    Image Modified

  2. From the Case Settings screen shown in step 2, you can also navigate

to 
  1. to Fields &

Relationships 
  1. Relationships to add new fields, such

as 
  1. as Contract Type, Contract Due Date, and so on.

  2. You can add a field

namely 
  1. namely Pending for Legal? to act as a middleman. It is

a Picklist 
  1. Picklist field in Salesforce and it only has “Yes” and “No” options. We’ll touch more on this later in the Jira’s configuration section.

⚙️ Part 2 Setup Jira

There are a few things that need to be configured in Jira:
Custom Fields

  1. You will need to create the counterpart fields that you have created for in Salesforce. For example, if you have created a field

for 
  1. for Contract Type

 in
  1.  in Salesforce, you need to do the same in Jira by creating

a 
  1. Select List (Single Choice) field type and have the same values for the field.

  2. As mentioned in step 6 on the Salesforce configuration part, we created a field named “Pending for Legal?”, now we are creating the counterpart for it in Jira as well.

  3. Once all of the custom fields have been created on both platforms, you can map these fields in

the 
  1. the Bindings.

  2. To do that, navigate

to 
  1. to Apps > Salesforce > Bindings, click

on Mapping 
  1. on Mapping for the project you’re linking it to,

click 
  1. click Mappings

 for
  1.  for the issue type that you want to map these fields:
    Image Modified

⚙️ Part 3 Setup Workflow Status/Post-function

  1. Create 2 statuses in Jira by navigating

to 
  1. to Settings > Issues > Statuses. We

created 2 
  1. created statuses: Waiting for

Legal and 
  1. Legal and Waiting for Jira Team

  2. We added these 2 statuses to the workflow of the project:
    Image Modified

  3. Click on

the transition to the 
  1. the transition to the Waiting for

Legal 
  1. Legal status, and a pop-up will appear on the right as shown in the screenshot above.

  2. Click

on 
  1. on Post Functions

  2. We added 2 Post Functions: Update Issue Custom

Field and 
  1. Field and Push to Salesforce

The 
    1. The Update Issue Custom

Field 
    1. Field is to update

the 
    1. the Pending for Legal? field

to 
    1. to Yes

 whenever
    1.  whenever this transition is made

The 
    1. The Push to

Salesforce 
    1. Salesforce is to automatically push the mapped fields to Salesforce
      Image Modified

⚙️ Part 4 Automation for Jira

We need to add an automation to enable the ability to transition the issue in Jira from Salesforce.

  1. Navigate

to 
  1. to Settings > System > Automation Rule
    Image Modified

Click 
  1. Click Create Rule

 on
  1.  on the top right

  2. Select

the 
  1. the Field Value Changed

 trigger
  1.  trigger and search

for 
  1. for Pending for Legal? field.

Click 
  1. Click Save.
    Image Modified

Select 
  1. Select New Condition.
    Image Modified

Select and
  1. Select User condition

 
  1.  and select User who triggered the event

 for the User field
  1.  for the User fieldIs for

the 
  1. the Check to perform

 field
  1.  fieldSalesforce & Jira Cloud Connector

 for the Criteria 
  1.  for the Criteria field:
    Image Modified

After saving, click 
  1. After saving, click New action:
    Image Modified

Select 
  1. Select Transition issue:
    Image Modified

Choose 
  1. Choose Waiting for Jira

Team 
  1. Team for

the 
  1. the Destination Status. 

Click 
  1. Click Save.
    Image Modified

Click 
  1. Click Turn it on
    Image Modified