I am writing a script for an escalation service using ScriptRunner. I'd like to get the link to a Service Desk request via the portal. IOW, I'd like to get the "X" for the issue key in "https://example.domain.com/servicedesk/customer/portal/x/key"
Hello,
There is the Service Desk Api. You can find some info here on how to use it in ScriptRunner:
https://scriptrunner.adaptavist.com/latest/jira/recipes/misc/jira-service-desk.html
You can find Java doc on the Service Desk Api here:
https://docs.atlassian.com/jira-servicedesk/3.9.1/
Have a look at the PortalService class in the documentation. I guess it returns what you need.
Thanks! How do you instantiate the various manager/service classes? Is there an equivalent of ComponentAccessor? I saw in your SC link that they created a ServiceDeskManager via @WithPlugin and @PluginModule annotations. IS that the normal way to do it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should use the WithPlugin annotation. You should find the required by you service/manager and inject it with the PluginModule annotation:
@PluginModule
YourService
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.