You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm trying to get all possible Insight objects (I need the label but once I get the object Ids, I can get them from there) that are tied to a custom field on Jira Cloud through my Connect AddOn using REST API. I believe if I find the schema ID that would be enough to continue from there but I can't find a place where I can get the connection between the custom field and the Insight schema. I'm looking at this documentation The Insight REST API (atlassian.com)
Another option could be using a REST call with an IQL query to get the results but I'm still not sure how to do that.
Any help or advice would be appreciated.
I managed to work it out by using the REST for search and using iqlFunction to search for all issues that have a value set (with a label) for the Insight field (cf 10129). I also have to include the cmdb.label for the custom field in the expand clause and I also limit the returned fields to only this one. Afterwards I can get all label values from inside:
rest/api/3/search?jql=project = 10000 and cf in iqlFunction("label is not empty")&expand=customfield_10129.cmdb.label&fields=customfield_10129