We had a single Jira instance and a Scriptrunner script which would add servicedesk orgs to a custom field. But now we have moved all projects to a new Jira instance and left servicedesk behind. The script running from the new instance fails with "Requested plugin com.atlassian.servicedesk was not installed/enabled". Is there a solution to this or do we have to look at a new method of getting the orgs from servicedesk?
Scripts that were designed with Service Desk APIs will not work if that application is installed. If the script did anything else, you'll need to redesign the script so that they don't use those features anymore.
And if you want to update data between instances whether it's native jira data or service desk data, you can't do that directly from the java API typically used in scriptrunner scripts. Those java API are strictly for local issues (in the current instance).
For a script to affect another instance, it needs to connect to the other instance over the network, typically using REST api calls. So your scripts will have to be redesigned with that in-mind.
If the two instances are linked via application links, you can use the ApplicationLink.createAuthenticatedRequestFactory().createRequest() method so that you don't have to handle authentication separately in your code.
Is the question how you can use an application that you do not have installed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.