Find source entities related to a target entity

GET {{baseUrl}}/api/relation/:relationName/to/:targetType/:targetKey/from/:sourceType?sourceStatus=<string>&targetStatus=<string>&sourceVersion=<integer>&targetVersion=<integer>&expand=<string>&expand=<string>&start=0&limit=25

Returns all target entities that have a particular relationship to the source entity. Note, relationships are one way.

For example, the following method finds all users that have a 'collaborator' relationship to a piece of content with an ID of '1234': GET https://your-domain.atlassian.net/wiki/rest/api/relation/collaborator/to/content/1234/from/user Note, 'collaborator' is an example custom relationship type.

Permissions required: Permission to view both the target entity and source entity.

Request Params

KeyDatatypeRequiredDescription
sourceStatusstringThe status of the source. This parameter is only used when the
sourceType is 'content'.
targetStatusstringThe status of the target. This parameter is only used when the
targetType is 'content'.
sourceVersionstringThe version of the source. This parameter is only used when the
sourceType is 'content' and the sourceStatus is 'historical'.
targetVersionstringThe version of the target. This parameter is only used when the
targetType is 'content' and the targetStatus is 'historical'.
expandstringA multi-value parameter indicating which properties of the response
object to expand.
  • relationData returns information about the relationship, such as who created it and when it was created.

  • source returns the source entity.

  • target returns the target entity. | | expand | string | | A multi-value parameter indicating which properties of the response object to expand.

  • relationData returns information about the relationship, such as who created it and when it was created.

  • source returns the source entity.

  • target returns the target entity. | | start | number | | The starting index of the returned relationships. | | limit | number | | The maximum number of relationships to return per page. Note, this may be restricted by fixed system limits. |

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;name&quot;:&quot;eiusmod sunt laboris&quot;,&quot;_expandable&quot;:{&quot;relationData&quot;:&quot;velit veniam&quot;,&quot;source&quot;:&quot;eiusmod&quot;,&quot;target&quot;:&quot;ea consectetur cupidatat ad adipisicing&quot;},&quot;_links&quot;:{},&quot;relationData&quot;:{&quot;createdBy&quot;:{&quot;type&quot;:&quot;user&quot;,&quot;accountId&quot;:&quot;velit in exercitation laboris&quot;,&quot;accountType&quot;:&quot;atlassian&quot;,&quot;email&quot;:&quot;id voluptate&quot;,&quot;publicName&quot;:&quot;deserunt&quot;,&quot;profilePicture&quot;:{&quot;path&quot;:&quot;ut fugiat&quot;,&quot;width&quot;:-38683687,&quot;height&quot;:65248683,&quot;isDefault&quot;:true},&quot;displayName&quot;:&quot;velit commodo ullamco ipsum&quot;,&quot;_expandable&quot;:{&quot;operations&quot;:&quot;id veniam&quot;,&quot;details&quot;:&quot;pariatur&quot;,&quot;personalSpace&quot;:&quot;enim nostrud exercitation consequat&quot;},&quot;_links&quot;:{},&quot;username&quot;:&quot;sed ullamco&quot;,&quot;userKey&quot;:&quot;esse quis elit&quot;,&quot;operations&quot;:[{&quot;operation&quot;:&quot;read&quot;,&quot;targetType&quot;:&quot;attachment&quot;},{&quot;operation&quot;:&quot;read&quot;,&quot;targetType&quot;:&quot;page&quot;}],&quot;details&quot;:{&quot;business&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;personal&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;personalSpace&quot;:{&quot;id&quot;:-57606158,&quot;key&quot;:&quot;sunt cillum aute&quot;,&quot;name&quot;:&quot;dolore elit ea in&quot;,&quot;type&quot;:&quot;non in&quot;,&quot;status&quot;:&quot;aliquip et anim&quot;,&quot;_expandable&quot;:{&quot;settings&quot;:&quot;ex dolor deserunt anim&quot;,&quot;metadata&quot;:&quot;dolore qui officia Duis&quot;,&quot;operations&quot;:&quot;sed laboris&quot;,&quot;lookAndFeel&quot;:&quot;Duis elit dolore veniam&quot;,&quot;permissions&quot;:&quot;dolor dolore in&quot;,&quot;icon&quot;:&quot;reprehenderit pariatur magna labore irure&quot;,&quot;description&quot;:&quot;Duis aute est fugiat laborum&quot;,&quot;theme&quot;:&quot;qui nulla est&quot;,&quot;history&quot;:&quot;non fugiat do&quot;,&quot;homepage&quot;:&quot;nisi&quot;},&quot;_links&quot;:{},&quot;icon&quot;:{&quot;path&quot;:&quot;est labore&quot;,&quot;width&quot;:-327281,&quot;height&quot;:-79671930,&quot;isDefault&quot;:false},&quot;description&quot;:{&quot;plain&quot;:{&quot;value&quot;:&quot;esse dolore&quot;,&quot;representation&quot;:&quot;view&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},&quot;view&quot;:{&quot;value&quot;:&quot;commodo&quot;,&quot;representation&quot;:&quot;view&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}},&quot;homepage&quot;:{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;},&quot;metadata&quot;:{&quot;labels&quot;:{&quot;results&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;start&quot;:-56637757,&quot;limit&quot;:1062771,&quot;size&quot;:37957067,&quot;_links&quot;:{}}},&quot;operations&quot;:[{&quot;operation&quot;:&quot;update&quot;,&quot;targetType&quot;:&quot;page&quot;},{&quot;operation&quot;:&quot;move&quot;,&quot;targetType&quot;:&quot;attachment&quot;}],&quot;permissions&quot;:[{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;purge_version&quot;,&quot;targetType&quot;:&quot;page&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false},{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;purge&quot;,&quot;targetType&quot;:&quot;page&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false}],&quot;settings&quot;:{&quot;routeOverrideEnabled&quot;:true,&quot;_links&quot;:{}},&quot;theme&quot;:{},&quot;lookAndFeel&quot;:{&quot;headings&quot;:{&quot;color&quot;:&quot;se&quot;},&quot;links&quot;:{&quot;color&quot;:&quot;sit&quot;},&quot;menus&quot;:{&quot;hoverOrFocus&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;color&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;header&quot;:{&quot;backgroundColor&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;button&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;primaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;secondaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;search&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;content&quot;:{&quot;screen&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;container&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;header&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;body&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;bordersAndDividers&quot;:{&quot;color&quot;:&quot;magna consequat&quot;}},&quot;history&quot;:{&quot;createdDate&quot;:&quot;1951-04-28T13:26:19.420Z&quot;}}},&quot;createdDate&quot;:&quot;1945-06-14T04:34:24.316Z&quot;,&quot;friendlyCreatedDate&quot;:&quot;reprehenderit &quot;},&quot;source&quot;:{},&quot;target&quot;:{}},{&quot;name&quot;:&quot;consectetur Ut enim occaec&quot;,&quot;_expandable&quot;:{&quot;relationData&quot;:&quot;in est qui&quot;,&quot;source&quot;:&quot;incididunt&quot;,&quot;target&quot;:&quot;laborum magna proident amet aliquip&quot;},&quot;_links&quot;:{},&quot;relationData&quot;:{&quot;createdBy&quot;:{&quot;type&quot;:&quot;user&quot;,&quot;accountId&quot;:&quot;cillu&quot;,&quot;accountType&quot;:&quot;app (if this user is a bot user created on behalf of an Atlassian app)&quot;,&quot;email&quot;:&quot;enim eu&quot;,&quot;publicName&quot;:&quot;eu aute in&quot;,&quot;profilePicture&quot;:{&quot;path&quot;:&quot;non&quot;,&quot;width&quot;:-48499479,&quot;height&quot;:87770702,&quot;isDefault&quot;:true},&quot;displayName&quot;:&quot;dolore ut&quot;,&quot;_expandable&quot;:{&quot;operations&quot;:&quot;magna pariatur eiusmod nisi&quot;,&quot;details&quot;:&quot;non consectetur&quot;,&quot;personalSpace&quot;:&quot;nostrud&quot;},&quot;_links&quot;:{},&quot;username&quot;:&quot;anim aliquip eu amet&quot;,&quot;userKey&quot;:&quot;dolore ullamco nostrud laboris&quot;,&quot;operations&quot;:[{&quot;operation&quot;:&quot;administer&quot;,&quot;targetType&quot;:&quot;comment&quot;},{&quot;operation&quot;:&quot;export&quot;,&quot;targetType&quot;:&quot;space&quot;}],&quot;details&quot;:{&quot;business&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;personal&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;personalSpace&quot;:{&quot;id&quot;:96005227,&quot;key&quot;:&quot;elit eiusmod ad&quot;,&quot;name&quot;:&quot;in tempor ad&quot;,&quot;type&quot;:&quot;et elit officia&quot;,&quot;status&quot;:&quot;dolore&quot;,&quot;_expandable&quot;:{&quot;settings&quot;:&quot;ad aliquip nisi sed&quot;,&quot;metadata&quot;:&quot;ut cupidatat&quot;,&quot;operations&quot;:&quot;veniam sit&quot;,&quot;lookAndFeel&quot;:&quot;anim ex&quot;,&quot;permissions&quot;:&quot;mollit qui Lorem nulla quis&quot;,&quot;icon&quot;:&quot;amet fugiat dolor cupidatat&quot;,&quot;description&quot;:&quot;consequat anim&quot;,&quot;theme&quot;:&quot;ipsum&quot;,&quot;history&quot;:&quot;aliqua Dui&quot;,&quot;homepage&quot;:&quot;voluptate consectetur do Ut ut&quot;},&quot;_links&quot;:{},&quot;icon&quot;:{&quot;path&quot;:&quot;ex minim consectetur&quot;,&quot;width&quot;:-35571565,&quot;height&quot;:-58278363,&quot;isDefault&quot;:false},&quot;description&quot;:{&quot;plain&quot;:{&quot;value&quot;:&quot;dolor exercitation&quot;,&quot;representation&quot;:&quot;plain&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},&quot;view&quot;:{&quot;value&quot;:&quot;velit irure laborum id nostrud&quot;,&quot;representation&quot;:&quot;view&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}},&quot;homepage&quot;:{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;},&quot;metadata&quot;:{&quot;labels&quot;:{&quot;results&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;start&quot;:36294069,&quot;limit&quot;:-28282967,&quot;size&quot;:56940014,&quot;_links&quot;:{}}},&quot;operations&quot;:[{&quot;operation&quot;:&quot;administer&quot;,&quot;targetType&quot;:&quot;blogpost&quot;},{&quot;operation&quot;:&quot;read&quot;,&quot;targetType&quot;:&quot;application&quot;}],&quot;permissions&quot;:[{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;purge&quot;,&quot;targetType&quot;:&quot;attachment&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false},{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;create&quot;,&quot;targetType&quot;:&quot;space&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false}],&quot;settings&quot;:{&quot;routeOverrideEnabled&quot;:false,&quot;_links&quot;:{}},&quot;theme&quot;:{},&quot;lookAndFeel&quot;:{&quot;headings&quot;:{&quot;color&quot;:&quot;dolore consequat occaeca&quot;},&quot;links&quot;:{&quot;color&quot;:&quot;occaecat ut sit&quot;},&quot;menus&quot;:{&quot;hoverOrFocus&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;color&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;header&quot;:{&quot;backgroundColor&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;button&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;primaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;secondaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;search&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;content&quot;:{&quot;screen&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;container&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;header&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;body&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;bordersAndDividers&quot;:{&quot;color&quot;:&quot;deserunt Duis laborum ad&quot;}},&quot;history&quot;:{&quot;createdDate&quot;:&quot;1977-01-29T01:15:06.769Z&quot;}}},&quot;createdDate&quot;:&quot;2018-11-14T12:56:13.456Z&quot;,&quot;friendlyCreatedDate&quot;:&quot;reprehenderit laborum&quot;},&quot;source&quot;:{},&quot;target&quot;:{}}],&quot;start&quot;:-48357202,&quot;limit&quot;:5335291,&quot;size&quot;:43833338,&quot;_links&quot;:{}}