# New to Jira-SF Integration through Exalate Syncing and having issues with Product Key Error

**URL:** <https://community.exalate.com/t/new-to-jira-sf-integration-through-exalate-syncing-and-having-issues-with-product-key-error/5560>\
**Category:** General Questions\
**Tags:** cloud-salesforce, exalate, cloud-jira, migrated\_question\
**Created:** [November 4, 2024, 8:13am UTC](https://community.exalate.com/t/new-to-jira-sf-integration-through-exalate-syncing-and-having-issues-with-product-key-error/5560 "2024-11-04T08:13:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 8:13am UTC](https://community.exalate.com/t/new-to-jira-sf-integration-through-exalate-syncing-and-having-issues-with-product-key-error/5560/1 "2024-11-04T08:13:03Z")

</div>

_Originally asked by Kaleigh Garcia on 15 August 2023 [(original question)](https://oldcommunity.exalate.com/questions/88245779)_

* * *

Hello! I’m attempting to update the script for our Jira and Salesforce integration through Exalate. I was asked to update the script to include the Epic for our records called ‘Tech Items’ to sync over. However, I’m getting the following error.

Error Detail Message: Project key is not set. You need to set a project key in the Sync Rules for {0} connection.

I’m not sure where to look or how to set the Project Key. My Code is below with \*/# used for privacy purposes. What am I missing?

Exalate Incoming Sync to Jira:

```auto
if (firstSync) {
    issue.projectKey = replica.JiraProjectKey__c
    issue.typeName = "***"
    if (replica.JiraProjectKey __c == " ****" || replica.JiraProjectKey__ c == "***") {
        // Set default Epic Link 
        issue.parentId = '######'

```

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 8:13am UTC](https://community.exalate.com/t/new-to-jira-sf-integration-through-exalate-syncing-and-having-issues-with-product-key-error/5560/2 "2024-11-04T08:13:04Z")

</div>

_Answer by Stéphane Thillay on 16 August 2023_

Hi Kaleigh,

As far as I understand, you can’t directly assigned a string to the Jira projectKey field. You’ll have to use the nodeHelper: [getProject | Exalate Documentation](https://docs.exalate.com/docs/getproject-6226109).

On Jira incoming script, I’m using the syntax:

`issue.projectKey = nodeHelper.getProject(replica.projectKey)?.key.toString()`

Regards,

Stéphane

* * *

#### Comments:

> **Kaleigh Garcia commented on 16 August 2023**
>
> > Thank you! I figured it out. I was misunderstanding the error. It was related to a record rather than my code.
