# Sending a report on the transition of requests in/out of the status 'Waiting for client response' by email
# Instruction

1. Log in to Swarmica as **Administrator**

2. Create a script in **Settings - Scripts** with the **Administrator** role:

![](https://support.swarmica.com/attachments/r/l/rlod9CI3iAfiyVLr_a/изображение.png)

3. Add the script [onetime_send_csv_with_ticket_status_change_report.py](https://support.swarmica.com/attachments/l/F/lF2GGURCGEvRTY6Z_a/onetime_send_csv_with_ticket_status_change_report.py)

4. Add the following webform parameters:

```txt
Name: Group UID
API Name: group_uid
Type: String
Required Field: Yes
Read-Only: No
```

```txt
Name: Date From
API Name: date_from
Type: Date
Required Field: Yes
Read-Only: No
```

```txt
Name: Date To
API Name: date_to
Type: Date
Required Field: Yes
Read-Only: No
```

```txt
Name: Recipient
API Name: recipient
Type: String
Required Field: Yes
Read-Only: No
```

5. Click **Save**

It should look like this in the end:

![](https://support.swarmica.com/attachments/M/u/Mu5Jrk3-jdPAJQPZ_a/изображение.png)

6. In the web form on the right, enter the group UID, the selection period (Date From/Date To), the recipient's email address, and click **Send**

![](https://support.swarmica.com/attachments/y/s/ysy3ODhv9rnMVaV8_a/изображение.png)

### Troubleshooting

You can track the process in the celeryworker container log before running the script:

```bash
docker logs swarmica-celeryworker-1 -f --tail 0
```