Workflows
To continue, you will first need to integrate with Linear if you haven't already: Linear
By integrating with Linear you will be able to do the following Workflow tasks:
- Create a Linear issue when a new incident is created
- Update a Linear issue to Done when an incident is resolved
- Create a Linear sub-issue when an action item is created in Rootly
How to create a Linear issue every time a new incident on Rootly is created. After you create a new Workflow, select the following Create a Linear Issue task on the right and click Add.
![Document image Document image](https://images.archbee.com/8_w24B7qUsOA0oEkiqb_I/IBJJZ0NhIWnVMLOQyfOFW_rtgkwpmn3pfnvag5zcsd7-cleanshot-2021-11-15-at-1145392x.png?format=webp)
Fill in the following fields
![Document image Document image](https://images.archbee.com/8_w24B7qUsOA0oEkiqb_I/CQPblGNwKyHXZ5BxNWzzh_er1upxln5gxkcaih4qhzp-cleanshot-2021-11-15-at-1154062x.png?format=webp)
- Name - Create a Linear Issue
- Team - Select your corresponding team in Linear you'd like this issue created for
- State - Select from Linear states
- Title - Name of the Linear issue, using {{ incident.title }} will default to the title of the incident
- Description - By default your description will be a summary of the incident {{ incident.summary }}
- Priority - The priority of your Linear issue, select from:
- Auto - This will automatically convert your incident severity to a corresponding Linear severity
Once completed, click Update Workflow.
You will need to create a separate and new Workflow specifically for Updating Linear Issues and cannot use the same Create Linear one previously created.
How to update a Linear Issue to a specific state. The following will show how to automatically update your already created Linear issue to Done when your incident is marked as Resolved in Rootly.
![Doc contributor](https://s3.amazonaws.com/archbee-animals/koala.png)
![Doc contributor](https://s3.amazonaws.com/archbee-animals/cat.png)
![Doc contributor](https://s3.amazonaws.com/archbee-animals/koala.png)
![Doc contributor](https://s3.amazonaws.com/archbee-animals/dog.png)