# Need rule to merge source based on citation ID

**URL:** <https://gramps.discourse.group/t/need-rule-to-merge-source-based-on-citation-id/7744>\
**Category:** Help\
**Created:** [May 26, 2025, 12:53am UTC](https://gramps.discourse.group/t/need-rule-to-merge-source-based-on-citation-id/7744 "2025-05-26T00:53:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [May 26, 2025, 12:53am UTC](https://gramps.discourse.group/t/need-rule-to-merge-source-based-on-citation-id/7744/1 "2025-05-26T00:53:22Z")

</div>

6.0.1:  
I merged a [**Family Tree Maker**](https://gramps-project.org/wiki/index.php/Import_from_another_genealogy_program#Family_Tree_Maker) gedcom and in the process of cleaning everything up. I’m merging duplicate citations and need to merge source IDs that use a specific citation ID. Can someone help me out with this?

---

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [May 26, 2025, 10:24am UTC](https://gramps.discourse.group/t/need-rule-to-merge-source-based-on-citation-id/7744/2 "2025-05-26T10:24:00Z")

</div>

I don’t understand exactly what you want, but to merge two sources you must first make sure that one of the two no longer has a citation linked to it if that’s what you’re trying to do.

---

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [May 26, 2025, 10:43am UTC](https://gramps.discourse.group/t/need-rule-to-merge-source-based-on-citation-id/7744/3 "2025-05-26T10:43:20Z")

</div>

Sorry I wrote that short after waking up, brain not fully awake. What I meant to say is find all my census events that are linked to a specific citation to merge them like when you do a paste from the clipboard.

---

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [May 26, 2025, 12:48pm UTC](https://gramps.discourse.group/t/need-rule-to-merge-source-based-on-citation-id/7744/4 "2025-05-26T12:48:27Z")

</div>

Lol. It’s more clear now.

Note the citation Page and Date and filter with this information using the `Event with the <citation>` filter in event filters. Optionally add the Census type to it.
