Ticket Information via Email using Automation
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
This article explains how to automate the retrieval of ticket details when a user enters a ticket ID, also called an work item key, in a designated custom field while creating a new request. An automation flow retrieves the ticket details and emails them to the reporter.
Solution
Here's a brief overview of the process we're looking to implement:
Creating a New Request: A user creates a new request and enters a ticket ID (work item key) into a designated custom field.
Automation:The automation should get the ticket details based on the ticket ID entered in the custom field and email these details to the Reporter.
Automation Setup Example
Step 1: Flow Trigger
Set the rule trigger to "Work Item created." This configuration ensures that the rule activates each time a new work item is logged.
Step 2: Check Custom Field for Ticket ID
Use a branch function to retrieve the issue by using JQL based on the ticket ID entered in the designated custom field. In this example, the custom field is named custom_text_single_line. Replace this example name with the custom field where users enter the work item key.
After the branch retrieves the work item via JQL from the custom field, the fetched work item becomes the context for the smart values used in Step 3 (for example {{issue.key}}, {{issue.summary}}, and {{issue.description}}).
To ensure security, remember to restrict the scope of automation so that users can only access tickets from Spaces they are authorized to access.
Step 3: Send Email
Use the Send customized email action and smart values to configure the message. Send the email to the reporter. For example, use {{issue.key}} in the subject and {{issue.summary}} and {{issue.description}} in the email body. You can further customize these details using additional smart values to meet your specific needs.
This guide provides a foundational framework for setting up the automation flow. You are encouraged to modify and extend it to better align with your operational requirements and preferences.
Was this helpful?