Im trying to configure my itop instance to send an email notification to the person when they are mentioned in the public log of a user request, but it is not working.
as per the documentation : https://www.itophub.io/wiki/page?id=latest:admin:notifications
it says in the email, the "to" field should be: "SELECT Contact WHERE id = :mentioned->id" Which is not correct, or at least not working for me. it gives me the following error in the emailevent:
"Error: Missing query argument: expecting = mentioned->id, available = {0=>this->object(); 1=>case-log-reply}"
i tried changing the "to" field to "SELECT Person WHERE id= :this->caller_id"
as per this discussion i found on sourceforge here "https://sourceforge.net/p/itop/discussion/customizing-itop/thread/916fa067/?limit=25#8d02"
but what happened was:
when i mention myself in the log, i get an email
when i mention anyone else, i also get an email
so im confused and it is not working
please find the attached configurations id done to point out my issues and help me.
here are the field i need to configure in the "on object mention" trigger
can you please just walk me through it? its a bit confusing for me it would be great help if you can tell me what i can add in each field to achive what i want:
-email notifaction to the mentioned person in public log
-what should i put in the "to" field of the email.
The "mention filter" field is only necessary if you want to limit the available options when typing "@xxx".
It can be useful if you want to limit the scope of mentionable people to those of the organization of the current Ticket for example.
Regarding the "Context" field, it's optional as well, use it only if you want the trigger to only apply when someone is being mentioned from here. If you leave this empty, it will always work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Okay great that worked fine.
One last question though,
when i mention in the logs, its fine the mentioned person gets the email correctly but, is it possible to make it that all mentioned persons each get an email? like if i mention in the logs 3 people, i want it to notify by email all 3 people.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, it should. I mean if in a log entry you put "Hello @a @b @c", you should have 3 different emails sent for a / b / c. What different behavior are you encountering?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im trying to configure my itop instance to send an email notification to the person when they are mentioned in the public log of a user request, but it is not working.
as per the documentation : https://www.itophub.io/wiki/page?id=latest:admin:notifications
it says in the email, the "to" field should be: "SELECT Contact WHERE id = :mentioned->id" Which is not correct, or at least not working for me. it gives me the following error in the emailevent:
"Error: Missing query argument: expecting = mentioned->id, available = {0=>this->object(); 1=>case-log-reply}"
i tried changing the "to" field to "SELECT Person WHERE id= :this->caller_id"
as per this discussion i found on sourceforge here "https://sourceforge.net/p/itop/discussion/customizing-itop/thread/916fa067/?limit=25#8d02"
but what happened was:
when i mention myself in the log, i get an email
when i mention anyone else, i also get an email
so im confused and it is not working
please find the attached configurations id done to point out my issues and help me.
Hello Youssef,
It is because you need to use the "on object mention" trigger instead of "on log update" trigger.
Hope it helps,
Guillaume
here are the field i need to configure in the "on object mention" trigger
can you please just walk me through it? its a bit confusing for me it would be great help if you can tell me what i can add in each field to achive what i want:
-email notifaction to the mentioned person in public log
-what should i put in the "to" field of the email.
please help i would be grateful.
The "mention filter" field is only necessary if you want to limit the available options when typing "@xxx".
It can be useful if you want to limit the scope of mentionable people to those of the organization of the current Ticket for example.
Regarding the "Context" field, it's optional as well, use it only if you want the trigger to only apply when someone is being mentioned from here. If you leave this empty, it will always work.
Okay great that worked fine.
One last question though,
when i mention in the logs, its fine the mentioned person gets the email correctly but, is it possible to make it that all mentioned persons each get an email? like if i mention in the logs 3 people, i want it to notify by email all 3 people.
Well, it should. I mean if in a log entry you put "Hello @a @b @c", you should have 3 different emails sent for a / b / c. What different behavior are you encountering?