Hello,
i'm learnig Groovy Script. It seems to be easier to script with Script Runner than Console of Insight.
Is there a simply way? I create a simple script using tutorial of Mindville and copied it into Script Runner but it seems not recognize functions.:Have i to do specific thing to be able to use it?
In Insight Console i can tell him the ticket for my test. Not here. Can you tell me how declare the ticket i want to get value?
Thank you!
It should work either way, but if you want to be rid of the errors this approach should help. I never really cared much, but I'm sure someone brighter than me can give you a detailed explanation :)
import com.atlassian.jira.component.ComponentAccessor
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
@WithPlugin("com.riadalabs.jira.plugins.insight")
import com.riadalabs.jira.plugins.insight.services.model.ObjectBean
import com.riadalabs.jira.plugins.insight.channel.external.api.facade.ObjectFacade
import com.riadalabs.jira.plugins.insight.channel.external.api.facade.ObjectTypeFacade
/* Get Insight Object Facade from plugin accessor */
def objectFacade = ComponentAccessor.getOSGiComponentInstanceOfType(ObjectFacade.class)
/* Get Insight Object Type Facade from plugin accessor */
def objectTypeFacade = ComponentAccessor.getOSGiComponentInstanceOfType(ObjectTypeFacade.class)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Julian from AF You're welcome! :)
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.