Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Create change rule

SOLVED
Go to solution
Highlighted
marwa5_1
Regular Collector

Create change rule

Hi,
Regarding HP Service Desk 4.5 SP17 I have 1 question
Is it possible to block new change creation after 5:00 PM
as when a user create new change case after 5:00 PM he'll have warning message that He is not able to create new case?

Thanks
Marwa
10 REPLIES
George M. Meneg
Honored Contributor
Solution

Re: Create change rule

Hello,

It will take two UI rules and a custom text field. The first ui rule will be executed when a new item is opened and set the custom text field to $HH$ (type this exactly at the update data). However, there is a catch. $HH$ will have the value of the hour of the current time in UTC.

So, if you are in UTC timezone the second rule will be evaluated before the item is saved and custom field is not 08 OR 09 OR 10 OR 11 OR 12 OR 13 OR 14OR 15 OR 16
As action it will display a message of ERROR type notifying that user isn't allowed to create a change at this time.

If your timezone is not UTC, you must do the appropriate changes (adding or subtract to the values 08 - 16 according to your time zone).

If you were in SP18 or later you could warn the user that he/she is not allowed to create a new change as soon as the user tried to create a new item. However this can't be done in SP17 since before Service Pack 18, UI rules and Database rules could only be triggered by a single event.
menes fhtagn
marwa5_1
Regular Collector

Re: Create change rule

Thanks a million it really was very useful but I have more one question, Is it possible to trigger on the Minutes also

BR,
Marwa
George M. Meneg
Honored Contributor

Re: Create change rule

Hello,

$MM$ will hold the minute

You can read about these variables in the SP7/SP8 addendum documentation.
menes fhtagn
marwa5_1
Regular Collector

Re: Create change rule

Hi George,
Actually I tried $MM$, $mm$ but both read as month not minute

Please is there any way to Differentiate between them?
George M. Meneg
Honored Contributor

Re: Create change rule

Hello,

Have a read of the pdf file located at (go to chapter about SP7)

http://ovweb.external.hp.com/ovnsmdps/pdf/sd45_sp20_addendum_en.pdf
menes fhtagn
marwa5_1
Regular Collector

Re: Create change rule

Dear George,
Sorry I can't open the PDF file would you please send me the related part only

Thanks
Ruth Porter
Honored Contributor

Re: Create change rule

Hi there,
This PDf is available in the doc folder under the folder where you expanded SP,

Hope this helps, Ruth
http://www.teamultra.net
marwa5_1
Regular Collector

Re: Create change rule

Thanks a lot, UI rules have been created successfully

I used $HH$:$MI$

Thanks
George M. Meneg
Honored Contributor

Re: Create change rule

Hello,

Glad we were able to help.

It's a good policy (and strongly encouraged) to give points to the answers to your questions.

Please have a look at http://forums1.itrc.hp.com/service/forums/helptips.do?#28
menes fhtagn
marwa5_1
Regular Collector

Re: Create change rule

Sorry as I'm late in assigning points but I have just heared about this today & I didn't use it before

Thanks for your support
//Add this to "OnDomLoad" event