How to use the unexalate API code

Originally asked by Helen Li on 08 February 2021 (original question)


Dear sir,
We want to unexalate a lot of issues which is a filter as below. How to unexalate automatically?
We know we can use the bulk unexalate, but it is not automatically.
We found the unexalate API here: https://docs.idalko.com/exalate/display/ED/Unexalate+operation#Unexalateoperation-UnexalateissueonJIRAServer
But we do not known where does such code put in? Could you please give some guide? Thanks in advance.

filter:
issue in under_sync_by_connection(“NOBO Defect_to_Duplicate”) AND status in (“In Integration”, “In Verification”, Closed)

BTW, we are using JIRA Server.

And I put it in the groovy script (workflow transition), but pop up error “unable to resolve class OsgiPlugin”

Best regards,
Haihua Li

Support type

scripting


Answer by Francis Martens (Exalate) on 10 February 2021

Hi Helen Li

Thanks for raising the question.
The documentation is not clear enough and you probably will have to add the classpath of the osgiplugin.
The OsgiPlugin is documented here

If you elaborate on the use case, I can be of a better help. When should the issue be unexalated for that specific connection?

Francis