I've applied changes to some of the Jira client import scripts. Those changes worked with YT releases 2021.3 and 2021.4.
Now I'm using 2022.1 and an import from Jira fails.
I'm starting the import wizard, enter my connection information as usual and click next expecting to get a list of Jira projects to choose from.
But the wizard stepping fails. I get this message just above the Back/Next/Cancel bottons:
class jetbrains.youtrack.scripts.model.MiscellaneousObject cannot be cast to class jetbrains.youtrack.imports.model.ScriptingClientFactory (jetbrains.youtrack.scripts.model.MiscellaneousObject and jetbrains.youtrack.imports.model.ScriptingClientFactory are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @33f57cbc)
In order to narrow down the issue I've started with a new Docker container of YT 2022.1.
Without any changes to the OOTB Jira client import scripts (i.e. none of my changes applied) the wizard step works well. I get the list of Jira projects to choose from. As it is just a test of the step in the wizard I cancel the import.
Now, in the workflow editor I applied one small of my changes that used to work. In @jetbrains/youtrack-jira-client/links I've changed line 18 to be a comment:
If I start the wizard again I run into the same error mentioned above.
It feels like any changes to the OOTB script triggers some compile step that fails for some dependency issue. But this is just a vague guess.
Any hint how to solve or workaround this issue are very welcome!