What is the use of Jelly script and when, where to use ?

wakespirit
Kilo Guru

Dear all,

I am learning the scripting in ServiceNow which is new for me actually.
Inpsite of client scripting which is quite clear to me by using g_form, g_user object, in an other hand I have been pointed to Jelly script at some time.

What is the use of Jelly script ?

When to use it ?

How to use ?

Thanks for clarification and concrete sample

regards

1 ACCEPTED SOLUTION

Priyanka136
Mega Guru

Hi scal,

In Jelly , you can create multiple controls specific to jelly, use multiple conditional expressions etc. You can check the below link to find various tags and other uses in jelly.

https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/script/general-scripting/referen...

Check the 1st Episode of TechNow also:-

https://community.servicenow.com/community?id=community_blog&sys_id=f95da629dbd0dbc01dcaf3231f961903

Thanks,

Priyanka

 

 

 

 

View solution in original post

6 REPLIES 6

Priyanka136
Mega Guru

Hi scal,

1) If you want to create your own UI page , you need to use Jelly script. Its scripting language created by SNOW, which uses it to process and render the UI page.

2) Jelly was the main templating language that all the SNOW forms and lists were built on. This has largely been replaced with AngularJS. However, Jelly is still used in a number of locations.

3) You can build your own custom interfaces using UI macros and UI pages, and even custom content blocks in the CMS using Jelly.

For further information you must refer the below link:-

https://community.servicenow.com/community?id=community_question&sys_id=33654faddbd8dbc01dcaf3231f96...

https://docs.servicenow.com/bundle/london-application-development/page/script/server-scripting/conce...

Let me know if you have any questions.

Please mark it Correct or Helpful, if it works based on impact....!!!!

Warm Regards,

Priyanka

find_real_file.png

www.dxsherpa.com

 

Thanks for your reply.

Does it means that Angular JS can also be used inside ServiceNow ?

how to make difference between both ?

 

regards

Jelly can still be used in a number of places (like UI pages and UI macros as Priyanka explained). However, it is not compatible with Service Portal which is built entirely on Angular JS.

If you are interested more in Jelly, I did a three part series a while back in our TechNow webinar. Episodes 1, 2, and 3 can help you understand what it is, where you can use it, and more.

TechNow Episode List

Can you explain what you mean by your last question? how to make difference between them both?

Hi chuck,

what i mean by " how to make difference between them both?", i mean more when to use Jelly  and when to use Angular..

Or is is better to use Angular everyway to avoid compatibility issue ?

 

regards