Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..
885 views

Configuration of Planned start and End Date in Service manager

Hello Experts.

 

I am trying to find some info if what I want to do is even possible to do in Service Manager.  And if it is possible, if anyone has a valid solution to create.

 

we have 5 change categoreis.

 

1) Major

2) Nomal

3) Emergency

4) Urgent

5) Routine

 

Now we want to configure lead time for the same.

 

Major - 10 days

NOrmal - 5 days

Emergecy - 1 Hour

Ugent 1 day

Routine -  3 days

 

 

So what we want to achive is that ... whenever the Cr is raised plan start date should be great than Above mention Time period.

 

Example :-

 

If anyone raise Major Change on 1st Jan then system should allow users to put the planned start  date  after 10 days and similar for other Categories.

 

PLeaese please please SOS

Thanks & Regards,
HP Tools

Live as if you were to die tomorrow. Learn as if you were to live forever.
0 Likes
8 Replies
Highlighted
Absent Member.
Absent Member.

Hi,

Here you have to put multiple validations in cm3r fc, try like

update/add: (lead.time in $file='10")
validation : (planned.time in $file - submit.date in $file > 10)

put similar to other values.

hth,
____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

How can we define 10 days time perird is assigned to Major Category

Thanks & Regards,
HP Tools

Live as if you were to die tomorrow. Learn as if you were to live forever.
0 Likes
Highlighted
New Member.

Hello, 

time in SM: days hour:min:sec

so 10 days =  '10 00:00:00' or u can use multiplication  '20:00:00'*12 = '10 00:00:00' 🙂

0 Likes
Highlighted
Absent Member.
Absent Member.

Could not get your question but as fljme said, time in SM is deine in format

days hh:mm:ss within single quotes.

hth,
____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Thanks for the response,

 

it's not what i was looking for ...  if you understand my requirement ,, in my case we want to know how to differ between categories.

 

 

Thanks & Regards,
HP Tools

Live as if you were to die tomorrow. Learn as if you were to live forever.
0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Example :-

 

as suggested you want us to define validation in FC > CM3R ..

 

 update/add: (lead.time in $file='10")
validation : (planned.time in $file - submit.date in $file > 10)

or

 

 update/add: (lead.time in $file='5")
validation : (planned.time in $file - submit.date in $file > 5)

Suppose User select as normal category which have 5 days of lead time .. but as per the above condition  or multiple condition, user also might select 10 days for nomal Cr ..

 

specific condition particular catergory ..

 

like User select Major then only  planned start date should be equal to 10 from time CR was raised.

if user select Normal then planned start date should be  equal then 5  from time CR was raised.

Thanks & Regards,
HP Tools

Live as if you were to die tomorrow. Learn as if you were to live forever.
0 Likes
Highlighted
Absent Member.
Absent Member.

then add one more condition like,

update/add: (lead.time in $file='5")
validation : (planned.time in $file - submit.date in $file > 5 and planned.time in $file - submit.date in $file <=10)

hth,
____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Hi,

 

I have not tested this, so it's just a suggestion on where you might start.  Also, if you want to take service hours into consideration, this does not do that.   Things start getting a bit more complex when you want to remove weekends and non service hours from the calculation.

 

If you already capture the lead time and it is available to validate against, then you will only need the validation, but if not then you need to first identify the lead time for your ticket.  For example, if your field "category" in your change is populated with "Major", "Normal", 'Emergency", etc. then you might add a Calculation to your formatctrl, something like this:

 

Add/Update/Delete: not null(category in $file)

Calculation: if (category in $file="Major") then ($lead.time='10 00:00:00') else if (category in $file="Normal") then ($lead.time='5 00:00:00') else if (category in $file="Emergency") then ($lead.time='01:00:00') else if (category in $file="Urgent") then ($lead.time='1 00:00:00') else (if (category in $file="Routine") then ($lead.time='3 00:00:00'))

 

you could also then just initialize an additional variable in the same calculation (separated by a semicolon) to compare against in your Validation:

 

if (planned.start in $file>(submit.date in $file+$lead.time)) then ($meetsleadtime=true) else ($meetsleadtime=false)

 

and then your Validation in your formatctrl would just be:

 

Validation:$meetsleadtime=true

 

or don't initialize the $meetsleadtime variable and just do the comparison directly in the Validation:

 

Validation: planned.start in $file>(submit.date in $file+$lead.time)

 

add/update/delete:  **Whatever condition you want. Perhaps it only triggers during a certain phase (current.phase in $file=""), or perhaps it triggers every time your user tries to save (true) or perhaps always, if the category is populate (not null(category in $file))

 

Good luck,

Audrey

 

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.