How to display a banner message on the itil login home page?

rev
Kilo Contributor

Hey everyone,

right now I'm trying to display a message on the Itil service now homepage based on the value of a field value on an incident form. I've done some research and so far haven't come up with much. Would anyone be able to point me in the right direction?

Thanks,

Rob

1 ACCEPTED SOLUTION

reedowens
Tera Contributor

Here is a dynamic content block to use as a starting point.



message_jelly.png



Add the Message content block to the spot on the page you want.   I added above the header and this is what it looks like:



result.png



And here is the code to copy:



   
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:evaluate>
   var gr = new GlideRecord('incident');
   gr.addActiveQuery();
   gr.addQuery('priority', '=', '1');
   gr.query();

   var foundIt = false;
   if (gr.hasNext()) foundIt = true;
</g:evaluate>
 
<j:if test="${foundIt}">
   <span class="my-message-class" style="background:red;color:black;">You have a priority 1 Incident</span>
</j:if>
</j:jelly>

View solution in original post

10 REPLIES 10

This does not allow an user to type in the widget.

Example-

I want a widget where any user can type like a sticky note but unlike the fact that sticky notes remain local for a user I want it to shared to all users.