---
title: "How to limit notifications for automation actions"
canonical: "https://support.appfire.com/space/SUPPORT/89147870/How%20to%20limit%20notifications%20for%20automation%20actions"
format: markdown
---
Often it is desirable to have automation perform actions that **do not cause notifications** to be sent that normally would be. Some examples are:

- Changing an issue multiple times in a sequence of updates
- Updating a field on a regular basis

Unfortunately, the notification schemes don't have an option regarding the originator of the request. Here is what can be done:

### Instructions

1. Create a user id (for example: **automation2**) that is only to be used for changes that **do not cause notifications**
2. Unzip
3. Get the source for the **MailListener.java** code from the JIRA source code for your version of JIRA
  - Normally found in **.../jira/src/java/com/atlassian/jira/event/listeners/mail**
4. Add it to the source directory in the correct location (replacing the stub)
5. Modify it to be something like:
6. [Install the Atlassian SDK](https://marketplace.atlassian.com/download/plugins/atlassian-plugin-sdk-mac)
7. From the directory you created with the unzip, run **atlas-mvn compile**
8. Copy the generated class file to your JIRA installation
  - Look in .../atlassian-jira/WEB-INF/classes/com/atlassian/jira/event/listeners/mail
  - Copy the shipped version somewhere for back
  - Replace with your compiled version
9. Restart JIRA
10. Use on your automation CLI command:

### Built Classes

Here are classes that have already been built using **automation2** as the name for specific JIRA releases. You will need to rename the class to **MailListener.class**

> Macro (attachments)