Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Current »

Since: v2.3.0.

We are receiving request from users that they would like to add two-step approval, we prepared this manual with step by step instruction how to edit workflow and add second supervisor

  1. New custom field

    1. Add new custom field - Team User Picker (Vacation Manager) - “2nd approver” to Vacation Manager project:

    2. Select Vacation Manager project in last step of wizard:

  2. Issue Security Scheme

    1. Go to “Security Levels“ in Vacation Manager Issue Security Scheme.

    2. Then use “Add“ button in “User, Supervisor and HR admins(Default)“ row.

    3. In next screen select “User custom field value“ radio button and select field created in point 1.

    4. Save changes.

  3. Vacation Manager Workflow

    1. Go to Vacation Manager Workflow and edit it.

    2. Add new status e.g. Waiting for 2nd approval

    3. Create new transition from “Waiting for approval” to “Waiting for 2nd approval“ - name “Send to 2nd supervisor“

    4. Search “approve“ transition and move it from “Waiting for approval“ to “Waiting for 2nd approval“

    5. In “Send to 2nd supervisor“ transition need add Conditions, Validators and Post Functions. It’s quite similar like in “Send to supervisor“ transition but it’s two differences marked in bold:
      - Conditions:
      Show transition for selected groups and users: supervisor, assignee, HR group (hrs)


      - Validators:
      Validates vacation days numbers using "Start Date" and "End Date" custom fields,
      Validates if supervisor/substitute fields are not the same as reporter


      - Post functions:
      Calculate used vacation days,
      Set Assignee to value from 2nd approver field (field created in point 1)


    6. Create new transition from “Waiting for 2nd approval“ to “Reject“ and add missing condition and post function like in “Reject“ transition:
      - Condition: Show transition for selected groups and users: assignee, HR group


      - Post function: The Resolution of the issue will be set to Done.



    7. Create new transition from “Waiting for 2nd approval“ to “Need more info“. In screen set “VACMAN Comment screen


      Edit Conditions and Validators
      - Conditions: Show transition for selected groups and users: assignee, HR group


      - Validators: Makes comment field required.

    8. Save all changes and publish new workflow:


First supervisor has access to vacation document only if he is assignee. After send to 2nd supervisor, he is not able to see this vacation document.

Example:

Example.mp4

  • No labels