Creating IT tasks and adding watchers for onboarding

Use case

When a new employee joins the company, they need basic equipment. The IT department is responsible for providing the new employee with a laptop, monitor, and smartphone. To ensure proper control, the HR team wants to monitor the process.

To achive this, whenever a task is created in the HR project, three tasks are automatically created in the IT project. These tasks correspond to the provisioning of the laptop, monitor, and smartphone. In addition, the HR team is added as watchers to these tasks so that they can track progress.

By using  Execute sequence of actions, the correct order of operations is ensured, and the created issue keys are determined and can be used for further processing. This approach allows the entire process to be structured in a single overview.

Prerequisite

A group of Human Resources users must be created and configured in the system.

⚒️ Configuration

Choose Execute sequence of actions as a post function.

Creating three tasks

To create the tasks, add the Create issue post function as a JWT action. Select Multiple issues based on a list as the mode. Use "["Laptop", "Monitor", "Smartphone"] as the Expression

["Laptop", "Monitor", "Smartphone"]

Also select Task as the selected issue type and IT Project as the Selected Project.

The Summary is also a parser expression. With %{seed.text} it refers to the list previously inserted in several issues.

For our new employee, please provide a new %{seed.text}.

As an additional option, save the issue key in the issue information and select Temporary text 1 as the Temporary text field.

Adding the HR group as watchers

As a second action, add the Add or remove watchers function. Select a Parser expression as the Target issue and use the temporary text field. 

%{issue.temporaryText1}

For Mode, select Add members of a group. Then select Human Resources group.


📚 Related Examples