[rt-devel] How to add custom field
Kuldeep Singh Tomar
tomar at vcustomer.com
Fri Apr 2 11:09:09 EST 2004
Hi Cerion,
I have done some changes and it is working now. Thanks for your help :-)
With Regards,
Kuldeep
Cerion Armour-Brown wrote:
>What does the log say?
>/opt/rt3/var/log/rt.log
>(Make sure $LogToFile is 'debug' in RT_SiteConfig.pm)
>Cerion
>P.S. This should really be in rt-users - you might get more help there.
>
>
>On Friday 02 April 2004 15:38, Kuldeep Singh Tomar wrote:
>
>
>>Hi,
>>
>>Waiting for input from team. I have tried different options but nothing
>>seems to be working. But I tried one option:
>>
>>Location | "Body" | ^Delhi |
>>
>>and it able to capture the value as Delhi if input is Delhi. But it is
>>not working when I am putting or option
>>
>>^(Delhi | Pune)
>>
>>same thing is not working for severity where I tried
>>
>>^S\d (looking for values like S1, S2, S3, S4 etc.....)
>>
>>
>>Some one from the team, who has exp. in it, please share his knowledge.
>> Really stuck to it now.
>>
>>Thanks in advance.
>>
>>
>>Kuldeep Singh
>>
>>kuldeep wrote:
>>
>>
>>>Hi Cerion,
>>>
>>>I tried it, but it is still not working. I am sending body part of
>>>mail to you:
>>>
>>>
>>>-------------------------------------------------------------------------
>>>---------------------------------------------------------------
>>>
>>>In case you would like to add any comments or information regarding
>>>your problem/ticket please click on above URL. Click on the comments
>>>option and add your comments there.
>>>
>>>Please enter the folowing login credentials:
>>>
>>>Username: guest
>>>Password: guest
>>>
>>>Thanks,
>>>
>>>
>>>PS : There is no need to reply to this message right now.
>>>
>>>Summary of the ticket appears below.
>>>
>>>User Name :kuldeep
>>>Email ID :tomar at vcustomer.com
>>>Workstation # :143.033
>>>Contact Number :33044
>>>Location :Delhi
>>>Account :VCLABS
>>>Problem :Problem with the software / Tool
>>>Comments :TESTING PLEASE IGNORE
>>>Severity :S5
>>>Department :System
>>>Number of users Affected :Single
>>>-------------------------------------------------------------------------
>>>------------------------------------------------------------------
>>>
>>>
>>>I want to grep the value of Location and Severity and put into
>>>CustomField Location and severity. I have installed the scrip
>>>ExtractCustomFieldValues-1.0b1 on rt system. I have made a scrip
>>>LocationExtract which is taking template with text as suggested by you
>>>and working on OnCreate:
>>>
>>>Location|Body|Location\s*:\s*(Delhi|Pune)| (It has spaces after
>>>location)
>>>
>>>
>>>But it is not taking value of Location from body part to Custom Field.
>>>I tried different regex and it is not working. Thanks for your
>>>guidence. What else could be the problem........
>>>
>>>
>>>With Regards,
>>>
>>>Kuldeep Singh
>>>
>>>Cerion Armour-Brown wrote:
>>>
>>>
>>>>On Thursday 01 April 2004 17:09, Kuldeep Singh Tomar wrote:
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>Sorry was away from office, so could not reply on list. I found this
>>>>>method to be easier than others but it did not work. I have installed
>>>>>this scrip and in my template put the text:
>>>>>
>>>>>Location | "Body" | Delhi |
>>>>>
>>>>>where Location is my custom field with having 2 options "Delhi or Pune"
>>>>>and I want to extract text from Body with value "Delhi" or "Pune"
>>>>>
>>>>>
>>>>1) Take the quotes off 'Body'
>>>>2) the third field is a regular expresion.
>>>>So, if you do something like:
>>>>Location|Body|Location:\s*(Delhi|Pune)|
>>>>This'll accept the values Delhi, Pune from the line in the email
>>>>body, e.g.
>>>>Location: Delhi
>>>>
>>>>If you don't want the 'Location: ' bit, and just want to search on a
>>>>line that has only those values on it, you might want something like:
>>>>Location|Body|^(Delhi|Pune)$|
>>>>
>>>>Hope that's clear,
>>>>Cerion
>>>>
>>>>P.S. There's _lots_ of perl refs on the web, e.g.:
>>>>http://search.cpan.org/~nwclark/perl-5.8.2/pod/perlreref.pod
>>>>
>>>>_______________________________________________
>>>>rt-devel mailing list
>>>>rt-devel at lists.bestpractical.com
>>>>http://lists.bestpractical.com/mailman/listinfo/rt-devel
>>>>
>>>>
>
>_______________________________________________
>rt-devel mailing list
>rt-devel at lists.bestpractical.com
>http://lists.bestpractical.com/mailman/listinfo/rt-devel
>
>
>
--
Kuldeep Singh Tomar
Open Source Specialist
VCLABS
More information about the Rt-devel
mailing list