I’m uploading lists (CSV) and added tags using Mautic to some of them so that I could find particular users within each segment. But now I can’t find any way to find or filter contacts by tags (already tried searching for tag:*, but no luck).
If there any way to find these contacts?
Also, in the future will there be a way to give points based on acquisition of someone with a certain tag?
Thanks ahead of time for your help!
I’m uploading lists (CSV) and added tags using Mautic to some of them so that I could find particular users within each segment. But now I can’t find any way to find or filter contacts by tags (already tried searching for tag:*, but no luck).
If there any way to find these contacts?
Also, in the future will there be a way to give points based on acquisition of someone with a certain tag?
Thanks ahead of time for your help!
There was a complaint about search by tag before ( https://github.com/mautic/mautic/pull/2416#issuecomment-243460282 ). It seems like a bug. Please, create a new issue here: https://github.com/mautic/mautic/issues
i had the same issue
i use this quick and dirty solution
i use the code in the Lead Repository.php from version 2.1.0 and it works again
replace with the following code: (its easy to find the right place)
case $this->translator->trans('mautic.lead.lead.searchcommand.tag'):
// search by tag
$sq = $this->_em->getConnection()->createQueryBuilder();
$sq->select('x.lead_id')
->from(MAUTIC_TABLE_PREFIX.'lead_tags_xref', 'x')
->join('x', MAUTIC_TABLE_PREFIX.'lead_tags', 't', 'x.tag_id = t.id')
->where(
$sq->expr()->$eqFunc('t.tag', ":$unique")
)
->setParameter($unique, $string);
$results = $sq->execute()->fetchAll();
$leadIds = array();
foreach ($results as $row) {
$leadIds[] = $row['lead_id'];
}
if (!count($leadIds)) {
$leadIds[] = 0;
}
$expr = $q->expr()->in('l.id', $leadIds);
break;