PostMaster filter and dynamic field (checkbox)

Moderator: crythias

Post Reply
Thomymaster
OTRS expert
Posts: 64
Joined: 26 Sep 2016, 10:50
OTRS Version?: 5.0.12
Company: MPImF Heidelberg

PostMaster filter and dynamic field (checkbox)

Post by Thomymaster » 30 Jul 2018, 14:13

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
OTRS expert
Posts: 64
Joined: 26 Sep 2016, 10:50
OTRS Version?: 5.0.12
Company: MPImF Heidelberg

Re: PostMaster filter and dynamic field (checkbox)

Post by Thomymaster » 30 Jul 2018, 14:14

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
OTRS expert
Posts: 64
Joined: 26 Sep 2016, 10:50
OTRS Version?: 5.0.12
Company: MPImF Heidelberg

Re: PostMaster filter and dynamic field (checkbox)

Post by Thomymaster » 24 Aug 2018, 10:44

Does nobody hava a clue?
OTRS 5.0.12 on Ubuntu 14.04 LTS
OTRS 5.0.27 on Ubuntu 16.04 LTS

wurzel
OTRS guru
Posts: 2474
Joined: 08 Jul 2010, 22:25
OTRS Version?: 6.0.x

Re: PostMaster filter and dynamic field (checkbox)

Post by wurzel » 24 Aug 2018, 23:18

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)) Community Edition 6.0.x, LAMP LIVE auf Debian 9
    OTRS 6 Managed Silver

    -- 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