How to import / export dynamic field in OTRS

English! place to talk about OTRS development, programming and coding

Moderator: tto

Post Reply
williamrobert1983
OTRS expert
Posts: 94
Joined: 24 Oct 2013, 11:24
OTRS Version?: 3.1.1
Real Name: William
Company: Xchanging

How to import / export dynamic field in OTRS

Post by williamrobert1983 » 05 Dec 2013, 07:38

How to import / export dynamic field in OTRS ??

Thanks,

William

reneeb
OTRS guru
Posts: 4703
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb » 05 Dec 2013, 09:38

Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

williamrobert1983
OTRS expert
Posts: 94
Joined: 24 Oct 2013, 11:24
OTRS Version?: 3.1.1
Real Name: William
Company: Xchanging

Re: How to import / export dynamic field in OTRS

Post by williamrobert1983 » 05 Dec 2013, 10:09

Hi,

Yeah. I just imported already into the OTRS using package Manager. Could you please advice me how to use it?

Thanks in advance!

William

reneeb
OTRS guru
Posts: 4703
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb » 05 Dec 2013, 10:49

Currently this provides only a perl script that you can run on the command line:
ps.ImportExportDynamicFields.pl [-m <mode>] [-f <file> ] [fieldname1 fieldname2]

m mode export or import
f in export mode path to the file the export should be written to (optional)
in import mode path to the file that should be imported (mandatory)
fieldname# in export mode the names of the to be exported fields

Example:

perl bin/ps.ImportExportDynamicFields.pl -m export Test1 Test2

exports only the fields Test1 and Test2
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

williamrobert1983
OTRS expert
Posts: 94
Joined: 24 Oct 2013, 11:24
OTRS Version?: 3.1.1
Real Name: William
Company: Xchanging

Re: How to import / export dynamic field in OTRS

Post by williamrobert1983 » 05 Dec 2013, 11:15

Ok. Thanks. :)

gecelann
OTRS wizard
Posts: 164
Joined: 12 Feb 2016, 08:05
OTRS Version?: 5.0.0
Real Name: ann
Company: rghdinc

Re: How to import / export dynamic field in OTRS

Post by gecelann » 07 Jan 2017, 10:13

reneeb wrote:Currently this provides only a perl script that you can run on the command line:
ps.ImportExportDynamicFields.pl [-m <mode>] [-f <file> ] [fieldname1 fieldname2]

m mode export or import
f in export mode path to the file the export should be written to (optional)
in import mode path to the file that should be imported (mandatory)
fieldname# in export mode the names of the to be exported fields

Example:

perl bin/ps.ImportExportDynamicFields.pl -m export Test1 Test2

exports only the fields Test1 and Test2
Hi reneeb!
Is it still the same with otrs 5? :)

reneeb
OTRS guru
Posts: 4703
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb » 07 Jan 2017, 17:23

No, it's

Code: Select all

perl bin/otrs.Console.pl Maint::DynamicFields::Import
and

Code: Select all

perl bin/otrs.Console.pl Maint::DynamicFields::Export
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

sophea
OTRS newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
OTRS Version?: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: How to import / export dynamic field in OTRS

Post by sophea » 27 Mar 2018, 06:06

reneeb wrote:reneeb
after command is executed, where it will go? how do i run import command on a new otrs server?

Thanks,
Sophea

reneeb
OTRS guru
Posts: 4703
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb » 27 Mar 2018, 09:07

Run

Code: Select all

perl bin/otrs.Console.pl Maint::DynamicFields::Export --file /tmp/dynamic_fields.json
, copy the file /tmp/dynamic_fields.json to the new server (to the path /tmp/dynamic_fields.json) and run

Code: Select all

perl bin/otrs.Console.pl Maint::DynamicFields::Import --file /tmp/dynamic_fields.json
on the new server.
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

sophea
OTRS newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
OTRS Version?: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: How to import / export dynamic field in OTRS

Post by sophea » 27 Mar 2018, 13:25

Thank for quick reply but after i have installed unsuccessful the adonn importexportdynamicfields, when ever i view a ticket it always popup the message ready! and error .

Thanks
You do not have the required permissions to view the files attached to this post.

reneeb
OTRS guru
Posts: 4703
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb » 27 Mar 2018, 16:06

That module doesn't change anything in the ticket zoom. But you could deactivate the sysconfig option Frontend::Output::FilterElementPost###OutputFilterImportExportDynamicFields to remove all changes in the frontend...
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

sophea
OTRS newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
OTRS Version?: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: How to import / export dynamic field in OTRS

Post by sophea » 13 Apr 2018, 05:10

reneeb wrote:Run

Code: Select all

perl bin/otrs.Console.pl Maint::DynamicFields::Export --file /tmp/dynamic_fields.json
, copy the file /tmp/dynamic_fields.json to the new server (to the path /tmp/dynamic_fields.json) and run

Code: Select all

perl bin/otrs.Console.pl Maint::DynamicFields::Import --file /tmp/dynamic_fields.json
on the new server.
How do I export/import only some specific dynamicfield?

Example: export / import dynamicfield_01 02 03.

Regards,
Sophea

Post Reply