How to import / export dynamic field in OTRS

English! place to talk about development, programming and coding
Post Reply
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

How to import / export dynamic field in OTRS

Post by williamrobert1983 »

How to import / export dynamic field in OTRS ??

Thanks,

William
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb »

Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Re: How to import / export dynamic field in OTRS

Post by williamrobert1983 »

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
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb »

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 / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Re: How to import / export dynamic field in OTRS

Post by williamrobert1983 »

Ok. Thanks. :)
gecelann
Znuny expert
Posts: 164
Joined: 12 Feb 2016, 08:05
Znuny Version: 5.0.0
Real Name: ann
Company: rghdinc

Re: How to import / export dynamic field in OTRS

Post by gecelann »

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
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb »

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 / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
sophea
Znuny newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
Znuny Version: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: How to import / export dynamic field in OTRS

Post by sophea »

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
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb »

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 / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
sophea
Znuny newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
Znuny Version: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: How to import / export dynamic field in OTRS

Post by sophea »

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
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to import / export dynamic field in OTRS

Post by reneeb »

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 / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
sophea
Znuny newbie
Posts: 7
Joined: 12 Mar 2018, 04:32
Znuny Version: ITSM 6.4
Real Name: Sophea OUK
Company: BRED BANK CAMBODIA

Re: How to import / export dynamic field in OTRS

Post by sophea »

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