Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-csv-import
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-csv-import
Commits
25f241f3
Commit
25f241f3
authored
Nov 16, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added the option to upload tickets
parent
c1b8f18d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
517 additions
and
2 deletions
+517
-2
intranet-csv-import-procs.tcl
tcl/intranet-csv-import-procs.tcl
+13
-1
import-2.tcl
www/import-2.tcl
+1
-1
import-im_ticket.tcl
www/import-im_ticket.tcl
+503
-0
No files found.
tcl/intranet-csv-import-procs.tcl
View file @
25f241f3
...
...
@@ -36,7 +36,7 @@ ad_proc -public im_csv_import_guess_im_project { } {} {
{
parent_id
"Parent Nrs"
project_parent_nrs
""
}
{
company_id
"Customer Name"
company_name
""
}
{
start_date
"Start Date"
date
""
}
{
end_date
"
e
nd Date"
date
""
}
{
end_date
"
E
nd Date"
date
""
}
{
percent_completed
"Percent Completed"
number
""
}
{
project_lead_id
"Project Manager"
user_name
""
}
{
project_budget
"Budget"
number
""
}
...
...
@@ -47,8 +47,20 @@ ad_proc -public im_csv_import_guess_im_project { } {} {
ad_proc -public im_csv_import_guess_im_ticket
{
}
{}
{
set mapping
{
{
parent_id
"Ticket Container"
project_parent_nrs
""
}
{
parent_id
"Parent Nrs"
project_parent_nrs
""
}
{
parent_id
"SLA"
project_parent_nrs
""
}
{
project_nr
"Ticket Nr"
no_change
""
}
{
project_name
"Ticket Name"
no_change
""
}
{
ticket_customer_contact_id
"Customer Contact"
user_name
""
}
{
ticket_assignee_id
"Assignee"
user_name
""
}
{
ticket_status_id
"Ticket Status"
category
"Intranet Ticket Status"
}
{
ticket_type_id
"Ticket Type"
category
"Intranet Ticket Type"
}
{
ticket_prio_id
"Ticket Prio"
category
"Intranet Ticket Priority"
}
{
start_date
"Date"
date
""
}
{
ticket_dept_id
"Department"
cost_center
""
}
{
ticket_creation_date
"Creation Date"
date
""
}
{
creation_user
"Creation User"
user_name
""
}
}
return
$mapping
}
...
...
www/import-2.tcl
View file @
25f241f3
...
...
@@ -172,7 +172,7 @@ foreach header_name $headers {
# Redirect to a specific page for the import
switch
$object
_type
{
im_timesheet_task
- im_ticket
{
im_timesheet_task
{
set redirect_object_type
"im_project"
}
default
{
...
...
www/import-im_ticket.tcl
0 → 100644
View file @
25f241f3
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment