I'm seeing error in WebAccess ticket where it was caused by a precondition.
As you can see in the process above, the status "Task In Progress" is connected to the precondition "Current Assigned Group is Within Group".
I think it's causing the following error when analyst/user trying to view the task ticket with the "Task In Progress" status.
So when I remove the linkage from status to the precondition, finally user can view the task ticket.(as per image below)
Here's the precondition calculation which I think has no problem because the same precondition is used somewhere else without any error.
static def GetAttributeValue(Task):
Value = false
Username = Task.GetCurrentUserName().ToLower()
User = Task.GetObjectByAttribute("System.User","Name",Username)
for item in User.UserGroups:
if item.Group.Name == Task.CurrentAssignment.Group.Title:
Value = true
What do you think caused the precondition to be the problem? I can't simply solve this by removing the precondition due to security reasons. The precondition is very much needed.