Hello everybody,
we are using znuny version 6.0.3.4.
We are using some special postmaster filters and would like to have an extra field in the article details view to see which postmaster filter is used for debugging and test usecases.
For example in ticket zoom view you can see the article details:
From: xxx
To: yyy
Subject: zzz
And I would like to add this as extra field:
Filtername: "Postmaster Filtername which was triggered"
I've already looked around and tried something in the MIMEBase.tt template. I was able to change or add an field, but I was not able to get the filter information/value.
Any ideas?
Thanks in advance.
add extra field in article details
Moderator: crythias
add extra field in article details
Last edited by spark123 on 23 Jun 2021, 10:18, edited 1 time in total.
-
- Znuny superhero
- Posts: 890
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: add extra column in article details
Hey,
Every message leaves an entry in the communication log. You can either visit it directly via the admin area or you press on 'Message Log' within the ticket you want to check (it's an article action).
The communication log entry of the message will show you which postmaster filters ran successfully and which didn't.
Does that already solve you issue?
— Emin
Every message leaves an entry in the communication log. You can either visit it directly via the admin area or you press on 'Message Log' within the ticket you want to check (it's an article action).
The communication log entry of the message will show you which postmaster filters ran successfully and which didn't.
Does that already solve you issue?
— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
-
- Znuny superhero
- Posts: 629
- Joined: 24 Feb 2012, 03:58
- Znuny Version: LTS and Features
- Real Name: Mo Azfar
- Location: Kuala Lumpur, MY
- Contact:
Re: add extra column in article details
try activate Ticket::Frontend::PlainView either it suits your need or not
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This
Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This
Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
Re: add extra column in article details
Ticket::Frontend::PlainView is already activated.
Yeah, the communication log shows the successfull ran postmaster filter, but we want to display the Postmaster Filter in the details where also the sender and the subject is. So we don't have to open everytime the communication log.
For example like this:
Yeah, the communication log shows the successfull ran postmaster filter, but we want to display the Postmaster Filter in the details where also the sender and the subject is. So we don't have to open everytime the communication log.
For example like this:
-
- Znuny superhero
- Posts: 890
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: add extra column in article details
That'd require some more development than just changing the MIMEBase template. You need to get all successful postmaster filters after the ticket creation and fill these values into a dynamic field (article object).
— Emin
— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
Re: add extra field in article details
Hi Emin,
so we have a lot of Postmaster Filters. For example:
We are searching in the body section for "awesome|OMG |link|stuff|method|info |news |interesting"
I would create these DynamicFields (article objects, text?) and fill them with these values, right?
X-OTRS-DynamicField_article = "Filtername"
X-OTRS-DynamicField_articlevalue = "0-0-0-SPAM-BODY - awesome|OMG |link|stuff|method|info |news |interesting"
So when this filter successfully was triggered the X-OTRS-DynamicField_articlevalue should be displayed in the details as you can see on the picture.
Where do I have to set the dynamicfield in sysconfig? Or do I have to modify the template?
Thanks in advance.
so we have a lot of Postmaster Filters. For example:
We are searching in the body section for "awesome|OMG |link|stuff|method|info |news |interesting"
I would create these DynamicFields (article objects, text?) and fill them with these values, right?
X-OTRS-DynamicField_article = "Filtername"
X-OTRS-DynamicField_articlevalue = "0-0-0-SPAM-BODY - awesome|OMG |link|stuff|method|info |news |interesting"
So when this filter successfully was triggered the X-OTRS-DynamicField_articlevalue should be displayed in the details as you can see on the picture.
Where do I have to set the dynamicfield in sysconfig? Or do I have to modify the template?
Thanks in advance.
-
- Znuny superhero
- Posts: 890
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: add extra field in article details
Hey,
Exactly, but there is no DynamicField_article/DynamicField_articlevalue. Just fill DynamicField_article. You can show the dynamic field via "Ticket::Frontend::AgentTicketZoom###DynamicFieldTicket".
You should also keep in mind that only the value of the last matching postmaster filter will be set.
— Emin
Exactly, but there is no DynamicField_article/DynamicField_articlevalue. Just fill DynamicField_article. You can show the dynamic field via "Ticket::Frontend::AgentTicketZoom###DynamicFieldTicket".
You should also keep in mind that only the value of the last matching postmaster filter will be set.
— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
Re: add extra field in article details
Thanks! Problem solved!