cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
693
Views
0
Helpful
3
Replies

Dynamic Plan Task SLA

Shane O'Hanlon
Level 1
Level 1

Having a dynamic SLA/due date on a plan task

The catalog at the moment does have the ability to trigger a task on a schedule start date selected on the form itself using a date field. I would like to however have a task created right away (as normal) but have the due date/SLA set to a date that has been selected on the form by a user. Is there a way to do this in the catalog or is there some coding I could do to overide the SLA on a plan task and set it dynamically (I know there are other things we can do using code, like for example, make adding an attachment mandatory using javascript)? If not is there a chance of this being in a future release?

 

Thanks a lot,

3 Replies 3

Hi Shane,

Because due dates are computed by the Business Engine using task durations, there is no ability to set due dates directly/dynamically. As for having this ability in a future release, please do submit this as an enhancement request. At the present time, there are no current plans to modify the Business Engine near term.

Shane O'Hanlon
Level 1
Level 1

Hi Ed,

Thanks for getting back to me. I'll speak to Ken to see if we can have this submitted as an enhancement request.

Shane O'Hanlon
Level 1
Level 1

Ed,

If the user was to select a date in a date field, which we then copied to a hidden field and used javascript to edit to be the date minus the sla of the task:

 

For example they select 10th of august, the task duration we know is 5 days so we set the hidden field using JS to 5th of August. We then set the scheduled start date of the task to this date, the task would then trigger 5 days before the due date and the due date would be that which the suer had selected in the first place.

The problem I have here is with date objects in the catalog. When we grab data from a date field using JS it is as a string, we then convert it to a date object using JS and then do the manipulation on it (i.e. minsu 5 days or whatever) we then normally set it back to a string value and set the value of the date field to that string value in the normal format. The problem here is that when we use the scheduled start date on the option and use that field as the data, it sdoesn't work as it is in a sense a string value which the scheduled start date does nto recognise. Should we just elave it as a date object when putting it  back in to the field and will the scheduled start date recognise this as a date and thus schedule the task accordingly or is there some toher format this data must take? So far I haven't been able to get this to work.

 

Thanks,

Review Cisco Networking for a $25 gift card