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. **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/
Hey @Manoj Gangwar ,
That was exactly what I was looking for. Thank you so much for your reply.
- Chris Q.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.