Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation to email a list of the issues created by earlier steps of an automation

Chris Quantrell October 15, 2024

Hello,

I am creating a series of automations that make tickets for a team, and was thinking of adding a step to email the customer a list of the issues created. From what I have read that seems possible using the lookupissues smart value, but I was wondering how to go about this and what the best practice is as well.

1 answer

1 accepted

5 votes
Answer accepted
Manoj Gangwar
Community Champion
October 15, 2024

Hi @Chris Quantrell 

1. **Trigger the Automation:**

   Choose a trigger that starts your automation, such as when a new ticket is created or when a specific status is reached.

 

2. **Create the Issues:**

   Add a step to create the necessary issues based on your criteria.

 

3. **Use `lookupIssues`:**

   After the issues are created, you can use `lookupIssues` to gather them. For example, if you're using a specific project or label to identify the issues, your smart value might look like this:

   ```

   {{lookupIssues("project = 'YourProjectKey' AND created >= -1h")}}

   ```

   Adjust the JQL query according to your needs.

 

4. **Format the Email:**

   Use the `{{#lookupIssues}}` and `{{/lookupIssues}}` smart values to iterate over the issues in your email body. For example:

   ```plaintext

   Hi [Customer Name],

 

   Here are the issues we have created for you:

   {{#lookupIssues}}

   - [Issue Key]: [Issue Summary]

   {{/lookupIssues}}

 

   Best,

   Your Team

   ```

 

5. **Send the Email:**

   Add an action to send the email to the customer, using the formatted message from the previous step.

Documentation https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/

Chris Quantrell October 15, 2024

Hey @Manoj Gangwar ,

That was exactly what I was looking for. Thank you so much for your reply.

- Chris Q.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events