Developer
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Object types
Relationship types
Last updated Jan 8, 2026

Media file attached to content entity

The Teamwork Graph API is available through Forge's Early Access Program (EAP).

EAPs are offered to selected users for testing and feedback purposes. These features are unsupported and are subject to change without notice.

You must only install apps that call the Teamwork Graph API in test organizations. Apps calling the Teamwork Graph API require the read:graph:jiraor read:graph:confluence scope, which provides access to Teamwork Graph data across your entire organization. While apps still respect end-user permissions, this scope may grant access to sensitive information. For safety, only install these apps in organizations with test data. Do not install apps using this API in organizations with production data while this feature is in EAP.

Additionally, this EAP has significant limitations. To review the full list of limitations, see Limitations and considerations.

You must be part of this EAP in order to use the Teamwork Graph API. Express interest in joining through this form.

The `MediaFileAttachedToContentEntity` relationship represents the link between a Media File and the content it is attached to (Jira Work Items, Confluence Pages, or blog posts). It allows you to:
* Retrieve Media Files attached to a specific piece of content
* Find all content that a specific Media File is attached to
* Track and manage media attachments across Jira and Confluence

Relationship type: Canonical

From object typesTo object types
Media File - ati:cloud:media:fileJira Work Item - ati:cloud:jira:issue
Confluence Page - ati:cloud:confluence:page
Confluence Blogpost - ati:cloud:confluence:blogpost

Cypher

Note

We recommend sending parameterized Cypher queries as below instead of embedding the parameters directly in the query string. This approach will help ensure better performance.

GraphQL

1
2
query MediaFileAttachedToContentEntity_CypherQuery($cypherQuery: String!, $params: CypherRequestParams) {
  cypherQuery(query: $cypherQuery, params: $params) {
    edges {
      node {
        columns {
          value {
            ... on CypherQueryResultNode {
              id
              data {
                __typename
                ... on JiraWorkItem {
                  id
                }
                ... on ConfluencePage {
                  id
                }
                ... on ConfluenceBlogpost {
                  id
                }
              }
            }
          }
        }
      }
    }
  }
}

Params

1
2
{
  "cypherQuery": "MATCH (file:MediaFile {ari: $id})-[:media_file_attached_to_content_entity]->(item:JiraWorkItem) RETURN item",
  "params": {
    "id": "$id"
  }
}

Rate this page: