Originally asked by Kaleigh Garcia on 15 August 2023 (original question)
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:
if (firstSync) {
issue.projectKey = replica.JiraProjectKey__c
issue.typeName = "***"
if (replica.JiraProjectKey__c == "****" || replica.JiraProjectKey__c == "***") {
// Set default Epic Link
issue.parentId = '######'