Skip to content

Commit

Permalink
Merge branch 'release-prep'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Crome committed May 15, 2024
2 parents cf2dfae + e5b6432 commit 4301771
Show file tree
Hide file tree
Showing 2 changed files with 343 additions and 76 deletions.
29 changes: 14 additions & 15 deletions bin/rt-extension-import-csv.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ if ( $opt{help} || !$file ) {
exit;
}

unless ( $opt{config} ) {
Pod::Usage::pod2usage( "Option config is required" );
exit;
}

unless ( ( $opt{type} // '' ) =~ /^(?:user|ticket|transaction|article)$/ ) {
Pod::Usage::pod2usage( "Invalid type provided, should be one of user/ticket/transaction/article" );
exit;
Expand Down Expand Up @@ -189,7 +184,7 @@ __END__
=head1 NAME
rt-extension-csv-importer - Import data and create tickets in RT
rt-extension-csv-importer - Import data into RT
=head1 SYNOPSIS
Expand All @@ -201,8 +196,8 @@ rt-extension-csv-importer - Import data and create tickets in RT
=head1 DESCRIPTION
This script will import/update RT from data in a CSV file. See
L<RT::Extension::Import::CSV> for configuration.
This script will import/update RT from data in a CSV and other types of
delimted files. See L<RT::Extension::Import::CSV> for configuration.
=head1 OPTIONS
Expand All @@ -213,15 +208,15 @@ L<RT::Extension::Import::CSV> for configuration.
Provides an explicit extra configuration file which is loaded before any
other configuration files. This is useful to provide per-import settings.
F<RT_SiteConfig.pm> should B<not> contain settings for options with hashes
that may get merged with per-import settings. This option is required.
that may get merged with per-import settings.
=item C<--type> I<user|ticket|transaction|article> or C<-t> I<user|ticket|transaction|article>
Specify which type of data we shall import
Specify which type of data shall be imported. This is required.
=item C<--article-class> I<article class name>
Specify the article class when type is article.
Specify the article class. Required when type is article.
=item C<--update>
Expand Down Expand Up @@ -251,13 +246,17 @@ ticket if not found.
By default, tickets containing not-existing users will be skipped; with this
flag, they will be created without those users.
This also allows the script to continue processing even errors are found
when parsing csv.
This also allows the script to continue processing even if errors are found
when parsing the CSV file.
=item C<--run-scrips>
By default, scrips are temporarily deactivated on C<Transaction> creation. Use
this flag to allow RT to run scrips accordingly.
When importing transactions, the default behavior is to deactivate scrips
on transaction creation. Use this flag to allow RT to run scrips
accordingly.
This flag only affects transaction import; scrips are always run for
all other import types.
=item C<--mdy>, C<--dmy>
Expand Down
Loading

0 comments on commit 4301771

Please sign in to comment.