The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

UI Rule Replace chain " <xxx> " in title by another value.

SOLVED
Go to solution
Highlighted
RoDrO
Super Collector

UI Rule Replace chain " <xxx> " in title by another value.

First hi to all,

I have the following problem: In Changes I have predefined Titles (with Templates) of the type: " Discharge of the server . "

What I want to do is to replace the chain by the chain " name of the servant put by the user ".

I have tried with " substitute for ", it is possible to put wildcard characters as $ or *?

Thank you very much in advance.
4 REPLIES
Ruth Porter
Honored Contributor

Re: UI Rule Replace chain " <xxx> " in title by another value.

Hi there,

I think that if (and it is a bif if) the string you want to replace is always at the end, you could use the trim function and then concatenate.

If this doe snot give you enough information, please post a few more details.

Hope this helps, Ruth
http://www.teamultra.net
RoDrO
Super Collector

Re: UI Rule Replace chain " <xxx> " in title by another value.

Thanks Ruth,

Yes, the title could be :

Instalación servidor

and y i want that the user put in the name of the server and the new title could be :


Instalación servidor R2D2-WIFI-ROUTER


using a UI rule.

I don´t understand the trim function. How can i implement this?

Thanks a lot.
Ruth Porter
Honored Contributor
Solution

Re: UI Rule Replace chain " <xxx> " in title by another value.

Hi there,

Try the following action on the rule

(Update Data) Description set to (Concatenate (Trim righthand characters of [Description] Number of Chars ) With [Configuration Item Name])

where is the number of characters in the description set by the template; so if the descripion is:
" Discharge of the server ."
then n would be 9.

In the example above i have assumed that your title is the description field and that the CI field has the server name.

Hope this helps, Ruth
http://www.teamultra.net
RoDrO
Super Collector

Re: UI Rule Replace chain " <xxx> " in title by another value.

Thanks a lot.

I have used a similar UI rule. This solution is been worth if the characters to cut are fixed. I will change the fixed name of the groups. Thank you very much.


Greetings!!!!
Salud!!!!!
//Add this to "OnDomLoad" event