---
title: "Subtasks by Custom Field in Parent Issue"
canonical: "https://support.appfire.com/space/JEP/10944567/Subtasks%20by%20Custom%20Field%20in%20Parent%20Issue"
format: markdown
---
> Macro (excerpt)
> 
> <span style="color: #000000">Returns subtasks of parent issues that have cf-name = cf-value equality</span>


`jep.subTasksByCustomFieldInMainTask`<span style="color: #000000"> returns subtasks of parent issues which have </span>***<span style="color: #000000">cf-name</span>*****<span style="color: #000000"> = </span>*****<span style="color: #000000">cf-value</span>***<span style="color: #000000"> equality </span>

<span style="color: #000000"> Only text, select and multi-select custom fields can be searched! </span>  
  
<span style="color: #000000">Some samples:</span>

<span style="color: #000000"> </span>

```sql
issue in jep.subTasksByCustomFieldInMainTask("Department", "Software")
```