<p>You could use the <code>relatedTo</code> param (<a href="https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#relatedto" rel="nofollow noreferrer">docs</a>).</p>

<pre><code>{% set relatedPipelines = craft.entries()
    .section('pipeline')
    .relatedTo(yourSeriesEntry)
    .all() %}
</code></pre>

<p>Would return pipelines (if any) related to your <em>series1</em>.</p>

CC BY-SA 4.0
2020-03-18T10:56:02.783Z
Thanks, works perfectly!
sput
CC BY-SA 4.0
2020-03-18T09:59:21.430Z
2020-03-18T09:59:21.430Z
Oli
<p>I have two entry types <strong>'pipeline'</strong> (structure) and <strong>'series'</strong> (channel). I know I can add children in a structure, but I want to keep 'pipeline' and 'series' separate to avoid duplication, as a series can belong to multiple pipelines.</p>

<p>I assign a series to a pipeline with a field type Entries field.</p>

<p>As an example I assign 'series1' to 'pipeline1' and 'pipeline2'.</p>

<p>What I'd like to know:</p>

<p>a) Is it possible for 'series1' to know it is assigned to 'pipeline1' and 'pipeline2'?</p>

<p>b) If it's not possible, is there a way to update the series entry when assigning to a pipeline?</p>

<p>Thanks for any help!</p>

<entries><structure><fieldtypes><parents>
Is it possible for an assigned entry (via field type Entries field) to know what it has been assigned to?
# Is it possible for an assigned entry (via field type Entries field) to know what it has been assigned to?

(Asked by: username_0 on 2020-03-17)

I have two entry types **'pipeline'** (structure) and **'series'** (channel). I know I can add children in a structure, but I want to keep 'pipeline' and 'series' separate to avoid duplication, as a series can belong to multiple pipelines.

I assign a series to a pipeline with a field type Entries field.

As an example I assign 'series1' to 'pipeline1' and 'pipeline2'.

What I'd like to know:

a) Is it possible for 'series1' to know it is assigned to 'pipeline1' and 'pipeline2'?

b) If it's not possible, is there a way to update the series entry when assigning to a pipeline?

Thanks for any help!

**Tags:** entries, structure, fieldtypes, parents


---

## 1 answers

### Answer by username_1 on 2020-03-18. Score: 0 | Accepted answer

You could use the relatedTo param (docs).
{% set relatedPipelines = craft.entries()
    .section('pipeline')
    .relatedTo(yourSeriesEntry)
    .all() %}

Would return pipelines (if any) related to your series1.

> **Comments:**
> **username_0**: Thanks, works perfectly!  

---

