Idea ID 2755242
Possibility of using all of the "CurrentTaskPlanStatus" values

We need the flexibility to use all of the "CurrentTaskPlanStatus" values.
Some out-of-the-box rules use conditions like $entity.CurrentTaskPlanStatus. Although we expect to see this field in the fields section of every entity with Task Plan, it cannot be found anywhere.
The field gets the following values: "Running,Success,Failed,Cancelled".
Unfortunately, out of the 4 possible values (Running, Success, Failed, Cancel), the field is only populated with "Running" and "Success" values. There is no way for this field to have a value "Failed" or "Cancel".
For example, if we only have one task in Running status, the CurrentTaskPlanStatus is "Running".
If we close the task, the CurrentTaskPlanStatus is "Success".
If the task fails, the CurrentTaskPlanStatus is "Success".
If it is cancelled, the CurrentTaskPlanStatus is "Success".
Schedule rule for auto closure. And the steps are:
Create a custome filed TaskPlanStatus
Create a rule in IT Service->After change-> Set TaskPlanStatus to ${entity.CurentTaskPlanStatus}
Create a custom field RequestStatus
Try to add them in the full request form
Then set the per schedule rule which is:
After the record is in this phase for 1 hours, then every 1 hours, if ${(entity.TaskPlanStatus_c == 'Success')} Set Solution: Auto closed, Completion Code:CompletionCodeRequestFulfiled_c
Change the flag task plan showstopper from false to true.
This flag seem to change the CurrentTaskPlanStatus value to failed and cancelled if the last task fails or is cancelled, but it also has an impact on the progression of the Request’s workflow, which gets stuck on the fulfil phase (if the CurrentTaskPlanStatus is set to failed or cancelled). Therefore, there is no way for a Request to close, unless every task completes successfully. This cannot be the case for every Request.
The “task plan showstopper” flag is a good feature and works fine as-is.
However, the value of the CurrentTaskPlanStatus should be irrelevant to this flag.
We should be able to use the “failed” and “cancel” values in whatever way best suits the customer.
It makes no sense to only have 2 values available (Running and Completed) when the “task plan showstopper” flag is set to false and a task
fails or is cancelled. It will be really convenient to be able to use all of the values as it is important to extract the correct information, in order to proceed with auto closure of a Request according to the task plan status.
- Labels:
-
SMAX
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.