Hi,
I'm tasked with getting Tempo to use some data in one of our Insight objects.
We currently have some dropdowns in Tempo whose options dynamically populate based on the value of another field. Our current setup in Tempo uses a Scriptrunner REST Endpoint to reach out to an external database to get the needed values.
We would like to cut out the external database and pull these values from Insight. We have the Insight object set up and I'm in the Scriptrunner console building out logic that I intend to use in a REST Endpoint (code below). The IQL I'm using seems to get something back (that I assume is the Insight Object?) but I can't tell how to drill down to the actual data I need.
The response I'm getting is:
com.sun.jersey.core.spi.factory.ResponseImpl@7ced1b6f
import com.onresolve.scriptrunner.runner.customisers.PluginModule
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
import com.onresolve.scriptrunner.runner.rest.common.CustomEndpointDelegate
import com.riadalabs.jira.plugins.insight.channel.external.api.facade.IQLFacade
import groovy.transform.BaseScript
import groovy.transform.Field
import javax.ws.rs.core.Response
@WithPlugin('com.riadalabs.jira.plugins.insight') insightPlugin
@BaseScript CustomEndpointDelegate delegate
@PluginModule IQLFacade iqlFacade
def objects = iqlFacade.findObjects('objectTypeId = "DLO Code"')
Response.ok(objects*.label).build()
Hello Brian,
Thank you for contacting Tempo,
In regards to your question, we recommend to contact scriptrunner support they might have information regarding this, as for Tempo, our API page can be found here:
Best Regards,
Steven
Tempo Support Team
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.