---
title: "Sending Current Sprint data to Salesforce"
canonical: "https://support.appfire.com/space/SUPPORT/2412904509/Sending%20Current%20Sprint%20data%20to%20Salesforce"
format: markdown
---
## Problem

The *Connector for Salesforce & Jira* currently does not support mapping the native *Sprint field* in Jira.    
As a result, teams cannot directly sync Sprint details into Salesforce, which limits visibility of Agile metrics in Salesforce dashboards and reports.

## Workaround

You can create a *custom field* in Jira to capture the *Current Sprint* and then use Jira Automation to populate it. Once this field is updated automatically, it can be mapped into Salesforce.

### Steps to implement:

1. Create a *custom field* in Jira called "Current Sprint" (or any name of your choice).
2. Create an *automation rule* in Jira to automatically update this field with the active Sprint.

### Automation setup:

1. Create a *Variable* in your automation rule to capture the sprint details.    
Use the following smart value:    
`~{{#sprint}}{{state}}:{{name}}~{{/}}`
  1. This will return a list of all Sprints with their *state* and *name*.
2. Extract only the *active Sprint name* using Regex.    
Set the value of your "Current Sprint" field with the following expression:    
`{{sprintValue.match(".(~active:.~).*").remove("~active:").remove("~")}}`
  1. This expression finds the active Sprint, removes unnecessary formatting, and leaves only the Sprint name.
3. Save and publish the automation.

![image](media://33ea7142-e125-47c9-a72e-71a5d07986fa)

Your custom field will now always display the name of the currently active Sprint.

## Notes

- Only the *active Sprint* will be captured — closed or future Sprints are ignored.
- This ensures Salesforce always receives the *most recent Sprint name* to be mapped via the Connector.
- Remember to map the *"Current Sprint"* custom field (not the native Jira Sprint field) into Salesforce.