I have several workspaces and I want to be able to tell, at-a-glance, to which workspace a ticket is associated.
Create a new field called Reference Number and use mrsetfield.pl to prefix the ticket number with an alpha numeric workspace designator (SD in this example to signify Service Desk).
Go into Administration >> Workspace >> Form Designer and create a field called Reference Number.
Set the field to Read Only for both Customers and Agents. Save and Publish Form.
Go to Administration >> Workspace >> Escalation and create a new escalation rule. It should be an instant escalation on creation of issue, should include all statuses, should include all Issue Types, and should fire and External Action.
All Issue Types
The External Action should call the following command line:
c:FootprintsbinPerlbinperl c:Footprintsbinmrsetfield.pl %%MRID%% “Reference Number” “SD-%%MRID%%” %%PROJID%%
[Path to mrsetfield.pl program] [Variable that holds the current ticket number] [The field that you wish to set] [The string that you wish to prefix to the ticket number] [The ticket number] [The workspace ID]
Note: Both the prefix string and the ticket number variable must be enclosed in double quotes in this example: “SD-%%MRID%%”
Save your escalation rule as “Set Reference Number Field on Create”.
Create a new ticket and save it.
Take a look at your Reference Number Field. It should now hold SD- + the current ticket number. Example: SD-17
You can now include this reference number in all of your email templates, etc. and teach your customer community to refer to the Reference Number rather than the system generated ticket number (i.e. SD-17 instead of 17).
by Evans Martin, RightStar Systems
Tips & Tricks #1: Using mrsetfield.pl to populate Reference Number field