This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using assignments and workflows to create a task with subtasks

I want to create a task or object representing an activity, "Source code review" (SCR), with several linked subtasks ("review step" tasks) which must all be completed to mark the task as completed. The subtasks should only be assigned to/be able to be completed by the person who has been assigned the main task.

The way I've approached this is to create a new object type, "validation task" and two classes, "source code review" for the main task type, and "source code review step" for the sub-task/step. I've added "Reviewer" (the person who should perform the SCR task) as a required property of the SCR object. I've also created two workflows, "source code review workflow" to use with the main SCR object, and a "Pass/Fail"

However, I can't see any way to make the workflow state transition for the main object dependent on the workflow state of the linked objects. Is this possible without scripting?

I've attached an export package with the metadata objects/classes, in case my explanation is not precise enough. It can be summarized as follows:

Object type: Validation task

Class: Source code review
Required property: "Included source code review steps" (multi-select from list of objects with class "source code review step")
Workflow: "Source code review workflow" (SCR Pending (object is automatically assigned to user specified in "reviewer" metadata) -> SCR complete (PASS) or SCR complete (FAIL) )

(The SCR workflow will be more complex in its finished state, so it can't be the same PASS/FAIL workflow used for the sub-steps)

Class: Source code review step
Required property: Acceptance criteria (free text description)
Workflow: PASS/FAIL (no state -> PASS, FAIL or "Not Applicable")
SCR metadata.zip
Parents
  • Dear jarlemag,


    Edit: The green checkmark appears next to "assigned to:" on the metadata card that indicates that the user has completed the assignment, but the object icon for the assignment doesn't switch to the icon with a green checkmark on it. Any ideas why?


    Did you get this resolved?
    I'm having same issue: when using M-Files API MarkAssignmentCompleteByUser in workflow action script. Assignment is showing green checkmark, but "Completed" property shows "No" and assignment icon does not have green checkmark
    Only after making any manual change on assignment metadatacard, Completed property changes to "Yes" and green checkmark appears on assignment icon

    MFiles version MFiles.2015.3 (11.3.4330.243) on Windows 10 (10.0.16299 Build 16299)

    Best Regrads,
    Tigu
Reply
  • Dear jarlemag,


    Edit: The green checkmark appears next to "assigned to:" on the metadata card that indicates that the user has completed the assignment, but the object icon for the assignment doesn't switch to the icon with a green checkmark on it. Any ideas why?


    Did you get this resolved?
    I'm having same issue: when using M-Files API MarkAssignmentCompleteByUser in workflow action script. Assignment is showing green checkmark, but "Completed" property shows "No" and assignment icon does not have green checkmark
    Only after making any manual change on assignment metadatacard, Completed property changes to "Yes" and green checkmark appears on assignment icon

    MFiles version MFiles.2015.3 (11.3.4330.243) on Windows 10 (10.0.16299 Build 16299)

    Best Regrads,
    Tigu
Children
No Data