# What the right filter to do the following

**URL:** <https://community.shotgridsoftware.com/t/what-the-right-filter-to-do-the-following/19491>\
**Category:** Pipeline Integrations\
**Created:** [November 20, 2024, 8:28pm UTC](https://community.shotgridsoftware.com/t/what-the-right-filter-to-do-the-following/19491 "2024-11-20T20:28:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unicorn](https://avatars.discourse-cdn.com/v4/letter/u/35a633/32.png) [@unicorn](https://community.shotgridsoftware.com/u/unicorn)\
**Post date:** [November 20, 2024, 8:28pm UTC](https://community.shotgridsoftware.com/t/what-the-right-filter-to-do-the-following/19491/1 "2024-11-20T20:28:48Z")

</div>

I wanna see only in Version page with version is published under Template task and its version status is approve.

i tried:  
versions = sg.find(  
“Version”,  
[  
[“entity.Task.name”, “is”, “Template”],  
[“sg\_status\_list”, “is”, “apr”]  
],

“Error: API read() Version.entity.Task.name doesn’t exist:”

any leads?

thx.

---

<div class="post-metadata">

**Author:** ![unicorn](https://avatars.discourse-cdn.com/v4/letter/u/35a633/32.png) [@unicorn](https://community.shotgridsoftware.com/u/unicorn)\
**Post date:** [November 20, 2024, 8:52pm UTC](https://community.shotgridsoftware.com/t/what-the-right-filter-to-do-the-following/19491/2 "2024-11-20T20:52:48Z")

</div>

i updated to this:  
“Version”,  
[  
[“entity.Version.tasks.Task.content”, “is”, “Template”],  
[“sg\_status\_list”, “is”, “apr”]  
],

now giving me zero versions.

suppose to have 2.

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [November 22, 2024, 9:04am UTC](https://community.shotgridsoftware.com/t/what-the-right-filter-to-do-the-following/19491/3 "2024-11-22T09:04:58Z")

</div>

it should be

```auto
find_one(
  "Version",
  [["sg_task.Task.content", "is", "Template"],
    ["sg_status_list", "is", "apr"]])

```

The field `entity` points to the shot, not the version entity.
