|
|
If the iSql link does not appear, you must enable it using the CB_PAGE_VISIBILITY_ISQL variable. For details, see iSQL.
|
select ref.to_id as file_id from object_reference ref
inner join object association on ref.assoc_id=association.id and association.deleted=0
where ref.from_id=<artifact_id>
select ref.to_id as file_id from object_reference ref
inner join object artifact on ref.from_id=artifact.id inner join object_revision artifact_rev on artifact.id = artifact_rev.object_id
inner join object association on ref.assoc_id=association.id inner join object_revision association_rev on association.id = association_rev.object_id and artifact_rev.created_at=association_rev.created_at and association_rev.revision=1
where ref.from_id=<artifact_id>
and artifact_rev.revision=<artifact_revision>
|
|
Make sure to replace <artifact_id> and <artifact_revision> with real parameters in the queries.
|