To manage the workflows for official employment and onboarding of new employees, create a queue where you will track procedural matters, provision of equipment and access permissions, and the progress of probation period. Automate the creation of an appropriate issue pool when the candidate issue is closed with the Hired resolution.
Create separate issue types for various procedures related to employment and onboarding of new employees. For example, to issue access permissions and equipment, create an issue type Доступы и оборудование:
Click Queue settings in the top right corner of the Employment Queue page.
In the left panel, select Workflows.
Click Add issue type and select an issue type from the list.
To add a resolution, such as Resolved, hover over the issue type line and click .
Only an administrator can create new issue types. Make sure the issue types are unique.
Set up a trigger in the Candidates Queue
To automate replication of issues from the Candidates Queue to the Employment Queue, create a trigger that will fire when the candidate issue status changes to Hired:
Click Queue settings in the top right corner of the Candidates Queue page.
Select Automation in the left-hand panel.
In the top right corner, click Create → Trigger.
Enter the trigger name, for example Кандидат принят.
In the Under condition section, specify Status → became equal to → Hired (the status you created in the Candidates Queue workflow). Read more about trigger conditions here.
Under Perform actions, select HTTP request.
In the form that opens, enter the request parameters. In the Request body field, set the parameters of a new sub-issue. To substitute the values from the original issue, use variables:
To get the organization ID, go to Administration → Organizations and copy the value from the ID field.
The parameters that you pass in the request body using variables must be filled in in the original issue, otherwise the trigger will not fire.
To save the trigger, click Create.
Set up a trigger in the Employment Queue
After the candidate's issue is copied to the employees queue Employment Queue, you need to create several sub-issues related to the new employee in the same queue, for example: Доступы и оборудование, Оформление документов, Испытательный срок. To automate sub-issue creation, create a trigger that will fire when the new employee's issue status changes to In progress. To make the trigger fire only for issues of type Новые сотрудники, specify this type in the trigger conditions.
Create a trigger
Click Queue settings in the top right corner of the Employment Queue page.
Select Automation in the left-hand panel.
In the top right corner, click Create → Trigger.
Enter the trigger name, for example Новый сотрудник.
In the Under condition section, set two conditions:
Status → became equal to → In progress (the status you created in the Candidates Queue workflow).
Type → is equal to → New employee (the issue type you created in the Candidates Queue workflow).
Read more about trigger conditions here.
Under Perform actions, select HTTP request.
In the form that opens, enter the request parameters as you did earlier. In the Request body field, update the issue typedescription and key, for example:
{"queue":"<Employment_Queue_key>","summary":{{issue.summary.json}},"description":"Выдать доступы и оборудование","type":"<issue_key_Access_permissions_and_equipment>","parent":"{{issue.key}}"}
Add actions
To automatically create other sub-issues, add the appropriate actions to the trigger:
Under Perform actions, select HTTP request.
Fill out the form as you did earlier. In the Request body field, update the issue type description and key, for example: