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
  • Thanks for the advice. I've applied the "PASS/FAIL" workflow to the "SCR step" assignment class, but I don't know how to mark the assignment as complete as part of a state transition (and also how making sure the assignment can only be completed this way). I assume that requires scripting? There is the "actions" tab for each workflow state and a "set properties" option under that, but I couldn't find any property which describes if the assignment has been completed...


    Edit: I tried adding the following action script to the "PASS" state: "Vault.ObjectPropertyOperations.MarkAssignmentComplete ObjVer".

    I don't get any error messages but nothing appears to happen when making the state transition.
Reply
  • Thanks for the advice. I've applied the "PASS/FAIL" workflow to the "SCR step" assignment class, but I don't know how to mark the assignment as complete as part of a state transition (and also how making sure the assignment can only be completed this way). I assume that requires scripting? There is the "actions" tab for each workflow state and a "set properties" option under that, but I couldn't find any property which describes if the assignment has been completed...


    Edit: I tried adding the following action script to the "PASS" state: "Vault.ObjectPropertyOperations.MarkAssignmentComplete ObjVer".

    I don't get any error messages but nothing appears to happen when making the state transition.
Children
No Data