-
Notifications
You must be signed in to change notification settings - Fork 0
/
EXAMPLES.txt
111 lines (74 loc) · 3.78 KB
/
EXAMPLES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
set -e
set -x
# the following examples have all the --debug flag set, which prevents
# the removing of the mails from the inbox
# list all the mails from marco and exit
./bin/helpdesk-integration --debug --from marco --dry-run
# copy the mails from marco in a new ticket under General
./bin/helpdesk-integration --debug --from marco --queue "General"
# copy the mails from marco in the TW task list "New thing" (and
# create it if needed)
./bin/helpdesk-integration --debug --from marco --target teamwork --queue "New thing"
# copy the mails from marco in the RT ticket 2
./bin/helpdesk-integration --debug --from marco --target rt=2
# copy the mails from marco in the TW task 1159403 as comments
./bin/helpdesk-integration --debug --from marco --target teamwork=1159403
# copy the mails from marco in the ticket 2 as comment
./bin/helpdesk-integration --debug --from marco --target rt=2 --comment
# copy the mails from marco in the a new ticket and (try to) set the
owner to melmothx@gmail.com
./bin/helpdesk-integration --debug --from marco --target rt --workers melmothx@gmail.com
# copy the mails in a new RT ticket setting the subject
./bin/helpdesk-integration --debug --from marco --bts-subject "Testing the subj"
# same for teamwork
./bin/helpdesk-integration --debug --from marco --bts-subject "Testing the subj" --queue Test --target teamwork
# same for teamwork, but assigning to workers
./bin/helpdesk-integration --debug --from marco --bts-subject "Testing the subj" --queue Test --target teamwork --workers "melmothx@gmail.com,bubez"
# add links to RT ticket (#2591 will depend on the created ticket)
./bin/helpdesk-integration --debug --source imap --subject "Test" --target rt --link=depended_on_by=2591
# copy the RT ticket 150 in the TW task "This is a test" (and create it
# if needed).
./bin/helpdesk-integration --source rt=150 --target teamwork --queue "Pallino"
# same thing, but assign to a username
./bin/helpdesk-integration --source rt=151 --target teamwork \
--queue "This is a test" --workers "melmothx@gmail.com,bubez"
# copy the RT ticket 1 in the TW task 1159613 as comments
./bin/helpdesk-integration --source rt=151 --target teamwork=1159613 --workers "melmothx@gmail.com,bubez"
# custom fields
# Assuming RT#155 has the custom fields "Remote system" set to
# "teamwork" and the "Remote queue" set to "Hello", with the following
# configuration:
#
# rt:
# type: rt
# server: http://localhost/rt
# user: root
# password: xxxx
# target_name_field: "Remote system"
# target_id_field: "Teamwork id"
# target_queue_field: "Remote queue"
# teamwork:
# type: teamwork
# password: xxxxxxx
# server: https://linuxiahr.teamworkpm.net
# project: Linuxia testing
#
# the following command will discovery the target, and create a new
# todo-list in the Task list "Hello"
bin/helpdesk-integration --source rt=155
# Inspect a TW ticket
./bin/helpdesk-integration --source teamwork=1405969 --dry-run
# pick only a couple of messages from an RT ticket and create a new one, setting its title
./bin/helpdesk-integration --source rt=150 --transactions=1707,1710 --bts-subject "Cherrypicked"
# Inspect google calendar
./bin/helpdesk-integration --source gcal --dry-run
# Create an event from an RT ticket. This assume there is the Starts/Due set.
./bin/helpdesk-integration --source rt=215 --target gcal \
--ignore-images
# Create an RT ticket from a calendar (packs all the events in a
# ticket, which probably is now what we want).
./bin/helpdesk-integration --source gcal --target rt
# Crazy example, but works nevertheless: from gcal to github
./bin/helpdesk-integration --source gcal --target github
# assuming we have a mail in the mailbox which has one or more .ics attached:
./bin/helpdesk-integration --debug --source imap --target gcal --subject ical