Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

custom short description

osvaldo2
Kilo Contributor

Hi All,

I have a question, I am trying to get the task short description change based on what is selected when the from is submitted.

On the form I have two variables: a reference variable named "Application" and a select box variable named "Request". I also have the short description variable on the form. Each of the variables have the following options when selected:

Application     Request

Prod                         Change

Test                           Job Edit

Dev                             General Support

I need to have the variables be the following when selected : Prod = PD, Test = Test, Dev = DV, Change = CH, Job Edit = JE, and General Support = GS so that in turn the

the short description on the task be changed to the following:

RITMXXXX+application+request+whatever was entered on the short description:

In other words if on the form I choose Prod and Change and have the short description "making change" then the actual wording on the short description box on the task would be: RITMXXXPDCH making change.

I thought about doing a client catalog script with the following but I am lost on how to get the rest to work as I want too. Any ideas on what is the best way to accomplish this?

10 REPLIES 10

I think I got it:


var shortDesc = current.number + abvrMap_app[current.variables.Application.u_application] + [current.variables.Request_Type] + ' ' + current.variables.Short_Description;  


current.u_short_description = shortDesc;




Thanks for your help!