Hi
I am using the Atlassian Developer and GraphQL to experiment with extracting data from Atlassian Goals. Initially I want to extract data for a given Goal and later on for it's Metrics.
After a lot of trial and error I found that I need to extract the Goal using the UUID and not the Key. I have managed to display a few of the system fields within Goals but cannot display any Custom Fields. It may be due to my limited experience with the data structure.
Here is the GraphQL that extracts the Goal I want and a few fields (I have replaced my townsquare ID for security)..
query GoalQuery2 {goals_byIds(goalIds: "ari:cloud:townsquare:{my id is here} :goal/55541a4f-7a34-4d10-9170-154ea141cf2b") @optIn(to: "Townsquare")
{
name
status {
value
}
progress {
percentage
type
}
}
}
What syntax do i need to display the custom fields and their values?
Also can the above be written to use the Goal Key instead of the UUID as finding the UUID is very tricky - I've only managed to do it via Developer Mode in a Web Browser so far which is not ideal for programtic use