Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Feb 3, 2026

Querying data from Forge connectors

If you have added data to Teamwork Graph by building a custom Forge connector, you can query that data through the Teamwork Graph API if there are equivalent object types and relationships exposed.

This page explains how connector object types map to API object types, and which of that data you can query today.

The Teamwork Graph API is available through Forge's Preview release phase.

Preview features are available to all users and receive the same level of support as generally available features. Schemas, fields, and behavior may still change before general availability (GA), and breaking changes are subject to a minimum 1-month deprecation notice, announced in the Teamwork Graph changelog.

New apps should use curated queries or persisted Cypher queries. Raw cypherQuery is unavailable to new apps; existing apps should follow Migrate from raw Cypher queries.

To review the current limitations, see Limitations and considerations.

To share feedback or report an issue, visit the Atlassian developer community.

Declare and obtain admin approval for the scopes for every API object type your query reads. Missing or disabled scopes can cause empty or partial results without an error.

How connectors and the API work together

  1. Connectors push objects and relationships into Teamwork Graph using connector object types. Data is mapped to a common schema and stored in the graph.

  2. The Teamwork Graph API lets you query the graph using API object types and relationships. Objects that you added via connectors appear in the graph and can be queried when they map to an API object type.

Not every connector object type has a corresponding API object type. The table below shows which connector object types you can query via the API and which are not yet available to query.

Connector object type to API object type mapping

The following table maps connector object types to API object types. Use it to see which objects you've added via connectors you can query with the Teamwork Graph API. The Available relationships column lists relationship types you can use in Cypher to traverse to or from that API object type; see the relationship types overview for the full list.

Connector object typeAPI object typeQueryable?Available relationships
BranchExternal branchYes
BuildExternal buildYes
Calendar eventExternal calendar eventYes
CommentExternal commentYes
CommitExternal commitYes
ConversationExternal conversationYes
Customer organizationExternal customer orgYes—
DealExternal dealYes—
DeploymentExternal deploymentYes
DesignExternal designYes
DocumentExternal documentYes
Feature flagExternal feature flagYes
MessageExternal messagesYes
Pull requestExternal pull requestYes
RepositoryExternal repositoryYes
Software serviceExternal serviceYes
Work itemExternal work itemYes
Project—Not available to query—
Space—Not available to query—
Video—Not available to query—
Test—Not available to query—
Test execution—Not available to query—
Test plan—Not available to query—
Test run—Not available to query—
Test status—Not available to query—

Connector object types such as Project, Space, Video, or any of the Test-related connector object types do not currently have a corresponding API object type. They may be used by other Teamwork Graph experiences (for example, search), but they cannot be queried via the Teamwork Graph API at this time.

Querying Forge connector data with Cypher

If the object types you've ingested with your Forge connector have a corresponding API object type and relationships, you can query that data using the Teamwork Graph API and Cypher.

For that data to show up in relationship API queries, you need to create the right relationships when you push objects from your connector. Many of these relationships are created automatically when you use certain fields in your connector payload.

How relationships are created when you push objects

When you push objects from a connector, Teamwork Graph creates traversable relationships from the fields you send. Key fields that create relationships between object include:

For more details, see Create relationships.

If you don't set these when you push objects, those relationships won't be created and you won't be able to query them with Cypher.

Example

If you add an external document (for example, a document from Google Drive) via a custom Forge connector and you want to:

  1. Link it to the user who created or owns it.
  2. Link it to a specific Jira ticket.

When you push the document from your connector, include:

  • createdBy with the user's accountId or equivalent so the document is linked to that user.
  • associations with associationType: "issueIdOrKeys" and values: ["PROJ-123"] so the document is linked to that Jira work item.

After you've pushed the document, you can query the graph with Cypher. Below are examples for the relationships that are available in the API today.

Find external documents created by a user

Use the Atlassian user created documents relationship. This was created when you set createdBy on the document:

1
2
3
MATCH (user:AtlassianUser {ari: $userAri})-[:atlassian_user_created_documents]->(doc:ExternalDocument)
RETURN doc

Pass the user's ARI as userAri in your query parameters. This returns all external documents (including ones you added via connectors) that are linked to that user as creator.

Find child documents of a parent document

If you pushed documents with a parentKey pointing to another document, use the External document has child external document relationship:

1
2
3
MATCH (parent:ExternalDocument {ari: $parentAri})-[:external_document_has_child_external_document]->(child:ExternalDocument)
RETURN child

Pass the parent document's ARI as parentAri to get its child documents.

Documents linked to a Jira work item

When you push a document with associations using issueIdOrKeys, the link between the Jira work item and the document is created in the graph. Whether you can query that link via Cypher depends on the relationship types exposed in the API.

The API reference includes relationship types such as Jira work item links external design and Jira work item links external commit.

Additional relationship types for other associations (for example, document–work item) may be exposed over time. If there is a specific relationship you require, please reach out to your Atlassian representative so we can better understand your use case.

Check the relationship types overview for the current list of queryable relationships.

Regardless of API exposure, setting the right associations when you push the object is required for the link to exist so it can be used by the API and other experiences (e.g. Rovo, search) when supported.

Running the Cypher queries

Check whether a curated query covers your traversal. Otherwise, register the Cypher text as a persisted Cypher query and execute it through the GraphQL customQuery field using its query key. Raw cypherQuery is unavailable to new apps; see Migrate from raw Cypher queries.

Use parameterized queries (e.g. $userAri, $parentAri) rather than embedding values in the query string.

Next steps

Rate this page: