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.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.