Quantcast
Channel: Compass - The Atlassian Developer Community
Viewing all articles
Browse latest Browse all 30

Tier and Lifecycle fields values on Graph API

$
0
0

Hi,
I am using the GraphQL API to get back Compass Components.
There does not seem a way to get the Tier and Lifecycle fields values.
You can get back the meta deta like Name/Description/Options etc but not the value for the component.
Am I missing something?

Here is my query which gets back everything else ok
Note that the Explorer only offers definition as a child of fields, no reference to a value

query searchCompassComponents($cloudId: String!, $query: CompassSearchComponentQuery!) {
  compass {
    searchComponents(cloudId: $cloudId, query: $query) {
      ... on CompassSearchComponentConnection {
        nodes {
          link
          component {
            id
            name
            description
            typeId
            ownerId
            labels {
              name
            }
	        fields {
              definition {
                name
              }
            }
          }
        }
        pageInfo {
          hasNextPage
          endCursor
        }
      }
      ... on QueryError {
        message
        extensions {
          statusCode
          errorType
        }
      }
    }
  }
}

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 30

Latest Images

Trending Articles



Latest Images