Project Key is Invalid

    Problem

    Error detail:
    javax.scripts.ScriptException: com.exalate.api,exception.IssueTrackerException: Project key is invalid.
    Please check your create processor script.

    Cause

    Jira requires a project to be selected for creating issues. When you received Incoming sync from the remote side you should specify the project they'll be created in.

    This error is usually caused by the project key not being set or not being valid in the create Processor.

    Solution

    Set the project key in the incoming sync script.

    You can do that under Connections - edit the Connection - Sync Rules tab.

    if(firstSync){
      issue.projectKey = "TEST"
      issue.typeName = "Task"
    }