File: tutorial.pod

package info (click to toggle)
request-tracker5 5.0.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 79,580 kB
  • sloc: javascript: 191,835; perl: 87,099; sh: 1,412; makefile: 487; python: 37; php: 15
file content (322 lines) | stat: -rw-r--r-- 13,583 bytes parent folder | download
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
=encoding utf-8

=head1 Introduction

This is a basic tutorial for setting up asset tracking in RT using the Assets
functionality. At the end, you'll have a basic configuration that lets you add
assets, search for them, link them to tickets, etc.

=begin HTML

<p><img src="../../images/asset-search.png"
alt="Asset Search Results" /></p>

=end HTML

You can follow along with the tutorial and try setting things up yourself to
get a feel for all of the administrative controls. If you want to get a jump
start, the files to set up this basic configuration are provided in the
F</usr/share/doc/request-tracker5/customizing/assets> directory.

To load the test catalog, custom fields, and users, run the following from
your RT directory:

    rt-setup-database-5 --action insert --datafile \
      /usr/share/doc/request-tracker5/customizing/assets/tutorialdata

This will change the default catalog name, create some users, and give those
users asset permissions. Only asset rights are granted, so you need to grant
additional rights if you want to experiment with creating tickets and linking
assets. The initial user passwords are 'password'. You should only run this on
a test RT instance, as it is not intended to be used for configuring a
production system.

=head1 Getting Started

There are a few configuration options you might set before starting. Assets
offers a C<$DefaultCatalog> feature that works similar to RT's
L<DefaultQueue|http://bestpractical.com/docs/rt/latest/RT_Config.html#DefaultQueue>,
but you can probably skip it for now since you only have the one catalog so far.

More interesting are some optional portlets you can activate to add asset data
to RT's pages. MyAssets and FindAsset portlets are available for placement on
RT at a Glance or in dashboards and a UserAssets portlet is available for the
user summary pages.

These portlets are fairly self-explanatory and for reference you can find them
in C<$HomepageComponents> and C<@UserSummaryPortlets> respectively in
F<RT_Config.pm>. Note that C<$HomepageComponents> makes the portlets available,
but doesn't put them on RT at a Glance. To add them, just click the gearbox on
the upper right-hand corner of the homepage. C<@UserSummaryPortlets> does
automatically add the "Assigned Assets" portlet to the User Summary page. It
will appear based on the position in the configuration, so to move it rearrange
the list to where you want it to appear.

If you've made any configuration changes, restart your web server or save the page
if you made the changes in the web System Configuration page.

Display of the Assets menu is managed by a global right. As a SuperUser, you'll
see it automatically. To grant it to additional users, go to Admin > Global >
Group Rights, click on the Rights for Staff tab, and find "Show Assets menu".
Using that right, you can control who sees the Assets menu. You can grant it to
Everyone, just Privileged users, or to selected groups. The remaining sections
assume you have granted it and users can see the menu.

=head1 Catalogs

For the initial configuration, we'll log in as RT's root user so we have full
rights on the asset configuration. You could also create an "Asset Admin" group
and assign appropriate rights to allow other users to manage catalogs.

When you log in you'll see a new Assets menu, but before looking there we need
to look at catalogs and some other configuration. Catalogs are to assets what
queues are to tickets, so if you've used RT, the relationship should be fairly
familiar. Similar to the General queue, a "General assets" catalog is provided
to get you started. You can see it at Admin → Assets → Catalogs.

We're going to use the default, but change it to a name more appropriate for
our use. Clicking on the asset name brings us to the catalog edit page and we
can update the name to "IT Department Assets". You can update the description
if you like as well.

=begin HTML

<p><img src="../../images/edit-catalog.png"
alt="Edit Catalog" /></p>

=end HTML

You'll also notice that catalogs have a lifecycle just like queues. Request
tracker is installed with a default assets lifecycle, but just like queues you
can create new ones with custom statuses and other configuration to allow RT to
reflect the states of your assets.

You can find the asset lifecycle in the F<RT_Config.pm> file in your RT
installation. The initial statuses are new, allocated, in-use, recycled,
stolen, and deleted. Depending on your process, you might add new ones like
surplussed, donated, or in-repair. To create a new asset lifecycle, just copy
the default into F<RT_SiteConfig.pm>, replace the top-level "assets" key with
a new name, and make your changes.

=head1 Asset Custom Fields

Next we need to create some custom fields to hold our asset metadata. You can
find asset custom fields at Admin → Assets → Custom Fields and they work just
like custom fields for other RT objects.

=begin HTML

<p><img src="../../images/asset-cfs.png"
alt="Asset Custom Fields" /></p>

=end HTML

Request Tracker will automatically provide some core values for your assets.
Each asset can have a Name and Description and, like tickets, they have statuses
based on the lifecycle configuration. You can use Name and Description however
you want and they are not required. However, many of the asset pages use these
fields so it's best to provide a descriptive name to make it easy for people
working in RT to identify the asset quickly. The manufacturer's product name
can be convenient (e.g., '15" Macbook Pro').

Assets come with three user fields you can associate with an asset: Owner, Held
By, and Contact. These are provided to cover different types of assets, from
laptops to servers to software, and different asset management situations.
Owner can hold the user who bought the asset, maybe the head of the department
where the budget came from. Held by is who the asset is assigned to. Laptops
are assigned to a user and servers might be held (or managed) by the system
administrators. Contact can be used to set a manager who might need to know
about needed system updates or equipment with expiring support. Like tickets,
these roles give you places to attach rights, so use them however they work
best for you.

Any other information you want to track will need custom fields. We'll start
with a few basic fields:

=over

=item * Serial Number (enter one value)

The serial number from the asset.

=item * Tracking Number (enter one value)

An internal tracking number. RT will assign an asset ID as well, but you may
have other systems to integrate with or already have a way to assign asset ids
for accounting purposes.

=item * Manufacturer (dropdown)

Company that made the asset.

=item * Type (dropdown)

Is it a laptop, server, or cell phone?

=item * Issue Date (date)

When the asset was given to the owner (or held by) person.

Assets keep a transaction history like tickets, so you may be able pull this
information from the "owner set to X" transaction. Creating a separate field
makes it easier to report on.

=item * Support Expiration (date)

When the current support contract expires.

=back

=head1 Custom Field Grouping

Any custom fields you create will be displayed on the asset display page in a
default "Custom Fields" section. That may be sufficient, but assets also
supports RT's custom field grouping feature, so we can group together some
similar custom fields and give them a custom name. If we add the following to
F<RT_SiteConfig.pm>:

    Set(%CustomFieldGroupings,
        'RT::Asset' => [
            'Asset Details' => ['Serial Number', 'Manufacturer', 'Type', 'Tracking Number'],
            'Dates'         => ['Support Expiration', 'Issue Date'],
        ],
    );

and restart RT, the dates will be tacked on the end of the Dates portlet and we
get an Asset Details label on the other custom fields.

=begin HTML

<p><img
src="../../images/asset-date-details.png"
alt="Asset Date and Details Display" /></p>

=end HTML

=head1 Asset Rights

Now we've got the basic configuration in place to start recording asset data.
Next we need to assign some rights so people can view and edit asset
information. Our staff are all privileged users so we'll grant all view and
modify rights on our catalog to the Privileged role. We'll also include rights
to view and modify the catalog's custom fields, although you could set these
rights individually on each custom field if you wanted to allow users to see
some but not others.

Similar to queues, you can set rights at the catalog level. Go to Admin →
Assets → Catalogs and click on the catalog you want to edit. Click Group Rights
in the submenu to assign asset rights to groups like the system Privileged
group.

=begin HTML

<p><img src="../../images/catalog-rights.png"
alt="Catalog Rights" /></p>

=end HTML

We also want unprivileged users to be able to see their own assets to make it
easier to submit support requests. To give them just the Name and Description
on their own assets, we can grant SeeAssets and SeeCatalogs on the catalog to
the Held By role.

All of the asset rights are described in the Assets documentation. You can get
much more detailed and fine-grained than this example, allowing selected groups
and users to view and modify multiple different asset custom fields across many
different catalogs.

=head1 Working with Assets

So now that we have all of that configuration done, what can we do? Here are a
few scenarios to give you some ideas.

=head2 Add Assets to Your Catalogs

To start, staff can now start adding assets to RT allowing you to manage what
you have, what state it's in, who currently has it, and when support expires.
You could set up an intake process to get new assets added as they come in, and
eventually have statuses updated as they are assigned, used, and eventually
cycled out.

If you already have an asset database, even something simple like a
spreadsheet, you may be able to do an initial bulk import. Best Practical has
released L<RT::Extension::Assets::Import::CSV> which is a CSV import tool to
help you with this.

=head2 Track Assets

Your staff can now easily track work on assets by linking RT tickets to the
assets. Assume you have an issue with an asset, like a server needs a new power
supply. Your staff can use the asset search page to find the server. You'll
notice that the RT search box is context sensitive, so when you're on an asset
page, the search changes to Search Assets and you can search with that as well.

Once you locate the server asset record, in the Actions menu you'll find
"Create linked ticket", which does just that. You select the queue and which
user to use from the asset as the Requestor, and you land on the ticket create
page with some information pre-filled.

=begin HTML

<p><img
src="../../images/asset-ticket-create.png"
alt="Create Ticket for Asset Work" /></p>

=end HTML

As you can see in the screenshot, when you create a ticket with a linked asset,
you get an asset portlet on the create page and on the ticket display page as
well. If you navigate back to the asset, you'll see a link back to the ticket
in the Links section there. This gives you a record of all the tickets that
have been opened against this asset. If this is a common scenario for you, you
might even add a custom field on the ticket with the vendor tracking number of
the repair. During the repair, you might flip the asset to an 'in-repair'
status. Then when the ticket is resolved, flip it back to 'in-use'.

=head2 End User Asset Tickets

If an end user contacts us with some problem with their laptop, RT makes it
easy to find the correct laptop record and create a ticket for them. Since our
support staff do this frequently, they have added the Find User portlet to
their RT at a glance page and can quickly search for the user and go to their
User Summary page.

We have added the Assigned Assets portlet to the User Summary page, so the
laptop is right there on the page when we find the user. We can just click on
the asset, then use the "Create linked ticket" action as before to create the
new repair ticket.

=head2 End User Self Service

Assume we already assign passwords to our unprivileged users so they can use
RT's self service interface to submit tickets and they have basic permissions
to do so (SeeQueue on the designated queue, CreateTicket, etc.). Since we've
given some asset rights to unprivileged users, they can use RT's Self Service
interface to find their assets (e.g., laptops, cell phones, etc.) when
submitting support requests.

When they log into the self service interface, they will see an Assets menu
that takes them to a page displaying assets assigned to them. In our example
configuration, this is based on the Held by setting we set when we gave out the
laptop. When they navigate to the asset, they will see the Actions menu with
the same "Create linked ticket" action our staff uses. When they click on that,
they'll end up on the simplified ticket create page for self service. When the
ticket is created, the laptop will already be linked to it, saving our staff
the work.

=begin HTML

<p><img
src="../../images/asset-ticket-create-selfservice.png"
alt="Self Service Ticket for Asset Work" /></p>

=end HTML

=head1 Summary

This tutorial is only a quick overview showing how the assets functionality can
help you track assets. There are many more features you'll find as you explore
the assets interface, like stacking multiple assets on a single ticket, bulk
update features similar to tickets, and the search interface. Have fun!

=cut