Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,222
Community Members
 
Community Events
176
Community Groups

Get possible values for an Insight custom field through REST API

Edited

Hi guys,

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.

Thanks,
Georgi

1 answer

1 accepted

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[10129] in iqlFunction("label is not empty")&expand=customfield_10129.cmdb.label&fields=customfield_10129

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events