add extra field in article details

Moderator: crythias

Post Reply
spark123
Znuny newbie
Posts: 29
Joined: 10 May 2021, 12:25
Znuny Version: 6.034
Real Name: Andreas

add extra field in article details

Post by spark123 »

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.
Last edited by spark123 on 23 Jun 2021, 10:18, edited 1 time in total.
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: add extra column in article details

Post by zzz »

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
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
skullz
Znuny superhero
Posts: 621
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

Post by skullz »

try activate Ticket::Frontend::PlainView either it suits your need or not
spark123
Znuny newbie
Posts: 29
Joined: 10 May 2021, 12:25
Znuny Version: 6.034
Real Name: Andreas

Re: add extra column in article details

Post by spark123 »

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:

Image
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: add extra column in article details

Post by zzz »

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
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
spark123
Znuny newbie
Posts: 29
Joined: 10 May 2021, 12:25
Znuny Version: 6.034
Real Name: Andreas

Re: add extra field in article details

Post by spark123 »

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.
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: add extra field in article details

Post by zzz »

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
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
spark123
Znuny newbie
Posts: 29
Joined: 10 May 2021, 12:25
Znuny Version: 6.034
Real Name: Andreas

Re: add extra field in article details

Post by spark123 »

Thanks! Problem solved!
Post Reply