"has tasks" implementation? RRS feed

  • Question

  • Hello, I need to add a "Has Tasks" field on the Case entity.  I'm adding the ability for users to batch resolve cases and "Has Tasks" will provide an easy way for the user to validate at a glance which cases have open tasks.

    It's easy enough to handle HasTasks=true. I can create a PostTaskCreate plugin to set HasTasks=true for the incident that it's running for. However, I'm trying to figure out the easiest way to set HasTasks=false.  These are the supported messages for task plugins based on this msdn url http://msdn.microsoft.com/en-us/library/gg328576.aspx: 

    * Assign
    * Create
    * Delete
    * GrantAccess
    * Handle
    * ModifyAccess
    * Retrieve
    * RetrieveMultiple
    * RetrievePrincipalAccess
    * RetrieveSharedPrincipalsAndAccess
    * RevokeAccess
    * Route
    * SetState
    * SetStateDynamicEntity
    * Update

    So which message(s) will I need to create plugins for in order to cover all the scenarios where I may need to set HasTasks=false for the parent case?  I'm looking for the easiest way to do this. Plugins can be time-consuming to create and maintain, so if I can do this with 1 plugin instead of 2 then that would be my preference.

    Tuesday, February 18, 2014 9:20 PM