Free fields?

Moderator: crythias

Locked
holmesmail
Znuny newbie
Posts: 15
Joined: 28 Oct 2010, 19:22
Znuny Version: 2.4.7

Free fields?

Post by holmesmail »

Im not finding much information in the OTRS manual about "free fields". What are ticket free fields? Could someone please explain this to me?

Thanks in advance for any response.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Free fields?

Post by jojo »

Free Fields are additional fields on a ticket which can be used to store data in a structured way on a ticket vie dropdown or as free text.

Examples are: Error Codes, References to Ticket IDs from other systems, Phone Numbers etc
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
jacinth
Znuny newbie
Posts: 5
Joined: 29 Oct 2010, 03:59
Znuny Version: 2.4

Re: Free fields?

Post by jacinth »

Is there any manual that will explain further what are the keys that can be used? Eg, Label, Module and etc.
Can we have the free key field to get the drop down values from database?
I am trying to look for any example that can help me to understand better as I am not familiar with this.

Thanks.
peter_sk
Znuny newbie
Posts: 53
Joined: 10 Jun 2010, 09:27
Znuny Version: 2.4.7

Re: Free fields?

Post by peter_sk »

You can configure up to 16 fields (FreeText1 to FreeText16)
There are 2 steps to configure them.

Step 1: configuration of fields
Go to: Sysconfig -> Ticket -> Core::TicketFreeText:

For each field there are 5 Parameters:

1. TicketFreeKey1 - the name of the field, which can also be multiple values
2. TicketFreeKey1::DefaultSelection - the default value of field name (1)
3. TicketFreeText1: Possible values of the field (these are the values you choose from, when you are entering ticket)
4. TicketFreeText1::DefaultSelection . the default selection of the value of the field
5. TicketFreeText1::Link - you can add the url to each field, which is shown on ticket view.

Step 2. Configuration of usage of fields
When you configured fields, you the have to configure their usage:

Go to: Sysconfig: Sysconfig -> Ticket -> Frontend::Agent::Ticket::ViewXXXXXXXXXXXX

ViewXXXXXXXXXX is input mask (user interface) for specific task. For example Frontend::Agent::Ticket::ViewOwner - this is user interface, which is shown, when you click on Owner link in Ticket Zoom.

Let's taker Frontend::Agent::Ticket::ViewOwner example. There is a parameter: Ticket::Frontend::AgentTicketOwner###TicketFreeText

You'll see 16 fields in pairs of 2 (Key, Value). The key is allready filled with values from 1 to 16, each for one Freetext field. In the value field you can enter 0, 1 or 2.
0 = field is not shown
1 = field is shown
2 = field is show and is mandatory to enter value

If you for example enter the value of 2 in Value field of Key "1", then Freetext1, configured in previous step, would be shown and the user will have to enter (choose) the value of the field.

I hope this is clear enough.

Regards
Peter
OTRS 2.4.7 with ITSM 2.0.3. running on Linux Fedora 12
jacinth
Znuny newbie
Posts: 5
Joined: 29 Oct 2010, 03:59
Znuny Version: 2.4

Re: Free fields?

Post by jacinth »

Hi Peter,

Thanks for the explainations. I managed to get the free text field appeared in my phone ticket form.
Do you have any idea if we can pull the records of this free text field from Database instead of key in the list one by one manually through sysconfig?

Thanks
peter_sk
Znuny newbie
Posts: 53
Joined: 10 Jun 2010, 09:27
Znuny Version: 2.4.7

Re: Free fields?

Post by peter_sk »

Hi,

I tried to find the freetext definitions in database, but no luck...
Maybe someone else can help here?
OTRS 2.4.7 with ITSM 2.0.3. running on Linux Fedora 12
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Free fields?

Post by jojo »

thats not possible without development
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Free fields?

Post by crythias »

a back-end workaround can be to populate the
otrs/Kernel/Config/Files/ZZZAuto.pm file with something.

(Not generally recommended, but here goes...)

Code: Select all

$Self->{'TicketFreeText1'} =  {
  '' => '-',
  'Notebook' => 'Notebook',
  'PC' => 'PC',
  'Phone' => 'Phone'
};
$Self->{'TicketFreeKey1'} =  {
  'Product' => 'Product'
};
So, what could you do to prepopulate from a database? ... among other things, SELECT the values that you'd like to import then use, for example, excel to make a list like above (key/value pairs for the Text#). copy/paste into the file (note commas after all but last entry, or else you'll have an error.)

EDIT:

Code: Select all

=CONCATENATE("'",A1,"' => '",A1,"',")
Last edited by crythias on 05 Nov 2010, 20:44, edited 1 time in total.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
holmesmail
Znuny newbie
Posts: 15
Joined: 28 Oct 2010, 19:22
Znuny Version: 2.4.7

Re: Free fields?

Post by holmesmail »

Thanks crythias, youre great.
shaned123
Znuny newbie
Posts: 25
Joined: 30 Nov 2010, 20:34
Znuny Version: 2.4

Re: Free fields?

Post by shaned123 »

Is there an similar FreeText function for any of the itsm modules? i.e. can I add a freetext field to a change request or work order?
Thanks!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Free fields?

Post by jojo »

yes, there are free fields for Changes and Workorders
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
shaned123
Znuny newbie
Posts: 25
Joined: 30 Nov 2010, 20:34
Znuny Version: 2.4

Re: Free fields?

Post by shaned123 »

Thanks jojo - In what table are the free fields located? I have looked through all of the columns of the otrs.change_* tables and cannot find any fields referring to free text.

Thanks,
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Free fields?

Post by jojo »

you have to switch them on via sysconfig.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
shaned123
Znuny newbie
Posts: 25
Joined: 30 Nov 2010, 20:34
Znuny Version: 2.4

Re: Free fields?

Post by shaned123 »

Right - that does work on the standard 'ticket' but I am looking to extend that functionality on a Change or Work order. Within the 'ticket' table there are columns for Freetext 1-16 and you can edit which fields appear and their functionality. I don't see the free text equivalent fields in the Change or Workorder tables.

For example: open the Frontend::Agent::Ticket::ViewEmail form and editing the NewTicket::Frontend::AgentTicketEmail###TicketFreeText: fields allows you to specify which key (free text field) and the content of each.

Can I perform the same action in the Change and Work order tables?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Free fields?

Post by jojo »

whats your version of OTRS::ITSM?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
shaned123
Znuny newbie
Posts: 25
Joined: 30 Nov 2010, 20:34
Znuny Version: 2.4

Re: Free fields?

Post by shaned123 »

We are running ITSM 2.0.2
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Free fields?

Post by jojo »

Free Fields for Changes/Workorders are available since 2.1
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
vinnie2k
Znuny newbie
Posts: 20
Joined: 29 Mar 2011, 13:55
Znuny Version: 2.4.7

Re: Free fields?

Post by vinnie2k »

If I add a FreeTextField, I see that the customer ticket creation screen can display this new field.
How about the customer ticket zoom?

I'd like my customers to rate the support service (grades 1 to 4) when the request has been dealt with; for that, I need my new field to appear in the ticket zoom view :)

Any help appreciated.
OTRS 2.4.7 RedHat Linux 2.6.18-238.1.1.el5 mySQL 5.0.77
DragosT
Znuny newbie
Posts: 1
Joined: 06 Apr 2011, 10:07
Znuny Version: 3.0.6
Real Name: Dragos T

Re: Free fields?

Post by DragosT »

In a previous version i worked with the guys in our IT/dev department managed to add some fields in the ticket zoom view of each ticket that would allow you to set Customer OS, version of the product they were using etc etc.

I was hoping that in the new version there would be a way to add tags or something. I know there is the posibility to add text in the Free Fields however it would be better if those items could be shown in the right hand side of the ticket zoom, with a drop down menu.
I think they may have added a module in frontend.module###

I apollogize if this is not the correct section, seemed linked to the issue imho.
Locked