...
New custom field
Add new custom field - Team User Picker (Vacation Manager) - “2nd approver” to Vacation Manager project:
Select Vacation Manager project in last step of wizard:
Issue Security Scheme
Go to “Security Levels“ in Vacation Manager Issue Security Scheme.
Then use “Add“ button in “User, Supervisor and HR admins(Default)“ row.
In next screen select “User custom field value“ radio button and select field created in point 1.
Save changes.
Vacation Manager Workflow
Go to Vacation Manager Workflow and edit it.
Add new status e.g. Waiting for 2nd approval
Create new transition from “Waiting for approval” to “Waiting for 2nd approval“ - name “Send to 2nd supervisor“
Search “approve“ transition and move it from “Waiting for approval“ to “Waiting for 2nd approval“
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)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.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.Save all changes and publish new workflow:
...