PostMaster filter and dynamic field (checkbox)

Moderator: crythias

Post Reply
Thomymaster
Znuny newbie
Posts: 76
Joined: 26 Sep 2016, 10:50
Znuny Version: 5.0.12
Company: MPImF Heidelberg

PostMaster filter and dynamic field (checkbox)

Post by Thomymaster »

Hi

I have the following in my email body that should be parsed to a new ticket:

...
Discard: 0
SH: 0
...

These dynamic fields are type "checkbox"

I use the following PostMaster filter:
Discard:\s*(?<Discard>.*?)\n?SH:\s*(?<SH>.*?)\n

Set email header: X-OTRS-DynamicField-Discard
Set value: [**\Discard**]

Set email header: X-OTRS-DynamicField-SH
Set value: [**\SH**]

However this doesn't work, the checkboxes are always unchecked when a new ticket is created.

Do you have a clue? :)


Best,
Thomas
Set email header: X-OTRS-DynamicField-SH
Set value: [**\SH**]
OTRS 5.0.12 on Ubuntu 14.04 LTS
OTRS 5.0.27 on Ubuntu 16.04 LTS
Thomymaster
Znuny newbie
Posts: 76
Joined: 26 Sep 2016, 10:50
Znuny Version: 5.0.12
Company: MPImF Heidelberg

Re: PostMaster filter and dynamic field (checkbox)

Post by Thomymaster »

BTW

I tried with

0
1

as values for the dynamic field in the mail, but none of them worked
OTRS 5.0.12 on Ubuntu 14.04 LTS
OTRS 5.0.27 on Ubuntu 16.04 LTS
Thomymaster
Znuny newbie
Posts: 76
Joined: 26 Sep 2016, 10:50
Znuny Version: 5.0.12
Company: MPImF Heidelberg

Re: PostMaster filter and dynamic field (checkbox)

Post by Thomymaster »

Does nobody hava a clue?
OTRS 5.0.12 on Ubuntu 14.04 LTS
OTRS 5.0.27 on Ubuntu 16.04 LTS
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: PostMaster filter and dynamic field (checkbox)

Post by wurzel »

Hi,

If you klick the checkbox manually, what is in the ticket history? I think it is value "Checked" or "checked" (I am not sure)

Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply