---
title: "How to assign a sprint from Salesforce"
canonical: "https://support.appfire.com/space/477986818/2559841234/How%20to%20assign%20a%20sprint%20from%20Salesforce"
format: markdown
---
Jira Sprint synchronization is not supported out of the box. If you want to synchronize Jira Sprint information when creating Jira work items from Salesforce, you can use this workaround if you know the Sprint ID.

## \uD83D\uDCD8 Instructions

### Create custom fields in Jira and Salesforce

1. In Jira, create a **Number Field** type and name it `SF Field`.  
For detailed instructions, see [Create a new field | Atlassian Support](https://support.atlassian.com/jira-cloud-administration/docs/create-a-custom-field/).
2. Add the field to the create and edit screens.
3. In Salesforce, create a **Number** field type and name it `Jira Sprint`.   
You need to create the field under a relevant Salesforce object.
4. Add the field to the Object page layout.   
For detailed instructions, see [Salesforce Help](https://help.salesforce.com/s/articleView?id=sfdo.SFDO_Create_Custom_Field.htm&language=en_US&type=5).

### Map the fields

1. Map Jira work type with Salesforce object.
2. Click **Mappings** to map your two custom fields under the selected entity mapping.
  

### Create an automation rule

4. Navigate to **Settings **> **System **>** Global Automation.**
5. Click **Create Rule** > **Create from scratch**.
6. Select the **Field value changed** trigger and search for **SF Field**.
  1. Under the **Change type **field, select **Any changes to the field value**.
  2. Under the **For **field, select **Create work item **and** Edit work item**.
7. Click **Next**.
  
  

6. Select **THEN: add an action** and select **Edit work item**.
7. Click **More Options** without choosing a field.
8. Paste the following JSON text:
  
9. Click **Turn on rule** and publish the automation.

Now, we have the fields, the mapping, and the automation in place.

To update the field when creating a Jira issue from Salesforce, the numeric field that yo create in Salesforce must have the ID number of the sprint that you want to have in Jira. Please use the following Atlassian documentation to check how to find the ID of a sprint [Identify Sprint ID in Jira Software Cloud | Jira and Jira Service Management | Atlassian Support](https://confluence.atlassian.com/jirakb/jira-software-how-to-identify-the-id-of-a-sprint-779159065.html#:~:text=Go%20to%20an%20issue%20that,the%20end%20of%20the%20string.).