GET /wiki/rest/api/relation/{relationName}/to/{targetType}/{targetKey}/from/{sourceType}
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 /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.
Servers
- https://your-domain.atlassian.net
Path parameters
Name | Type | Required | Description |
---|---|---|---|
targetKey |
String | Yes |
The identifier for the target entity:
|
targetType |
String | Yes |
The target entity type of the relationship. Possible values:
|
sourceType |
String | Yes |
The source entity type of the relationship. Possible values:
|
relationName |
String | Yes |
The name of the relationship. This method supports relationships created via Create relationship. Note, this method does not support 'like' or 'favourite' relationships. |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
limit |
Integer | No |
The maximum number of relationships to return per page. Note, this may be restricted by fixed system limits. Default value: 25 |
targetVersion |
Integer | No |
The version of the target. This parameter is only used when the
|
targetStatus |
String | No |
The status of the target. This parameter is only used when the
|
expand[] |
Array | No |
A multi-value parameter indicating which properties of the response object to expand.
|
sourceVersion |
Integer | No |
The version of the source. This parameter is only used when the
|
start |
Integer | No |
The starting index of the returned relationships. Default value: 0 |
sourceStatus |
String | No |
The status of the source. This parameter is only used when the
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.