<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=949806081816595&amp;ev=PageView&amp;noscript=1">
Go Back

Jira Automation Report: 'Email Handled within 2 Days'

Trevan Householder Trevan Householder | April 2, 2019 | 3 MIN READ

Sometimes, even with Advanced JQL in a Jira search, the data you need just isn't available. I recently helped to solve a problem like this for a client and thought I'd share how it was done.

Scenario: Client XYZ needed a report that showed a list of the "Emails Handled."

Definition of "Emails Handled:"

  • Issues of the type, "Email Issue," that are "responded to" within two days
  • "Responded to" means the status changed from "New" to any other status within 2 days (48 hours) of issue creation

 

In this case, Jira's powerful automation functionality allows us to easily search for issues that have transitioned from one status to any other, within two days of issue creation and then take automated action on that set of issues.

Here's how to do it:

 

Step 1: Set Up a New Custom Field:

A Jira Administrator will need to set up a new custom field for your report:

Field Type: Text box (single line)

Field Name: Email Handled within 2 Days

 

Step 2: Go to the Project Settings (the Gear Icon)

 

Step 3: Set Up Project Automation

a. Click "Project Automation" (not "Automation"...that's different)

b. Click "Create Rule" in the upper right corner of the screen

c. For the Trigger, select "Issue Transitioned"

 

 

d. Under "From status" select "New"

 

 

e. Leave the "To status" as it is and click "Save"

f. On the "Add Component" screen, click "New Condition"

 

 

g. On the "New Condition" screen, click "JQL condition"

 

 

h. Enter the following in the JQL window: "created > -2d" or "created > -48h" (without the quotes)

i. Click Validate query to make sure it doesn't throw an error and the issue count is what you'd expect

 

 

j. If the query doesn't return the # of issues you expected to see, type that query into a Jira issue search and play with it there until you get it right; then come back here, paste it in, and validate it

 

 

k. When you're confident the search is returning the right results, click "Save"

l. On the "Add Component" screen, click "New Action"

 

 

m. On the "New action" screen, click "Edit issue"

 

 

n. On the "Edit issue" screen, type the name of your new custom field that you created in Step 1, and hit enter or return

 

 

o. In the dropdown just below it, type the name of the custom field, "Email Handled within 2 Days"

p. In the box below that, type "Yes" (without the quotes), and click "Save"

 

 

q. Name this automation, "Set Email Handled within 2 Days to Yes", and click "Turn it on"

 

Step 4: Set Up Your JQL Filter that Will Return the Search Results that You've Just Created

a. Type the following query into a Jira issue search (with the quotes): "Email Handled within 2 Days" ~ Yes

 

 

b. Save your search as "Email Handled within 2 Days" and be sure to mark it as a Favorite so you will be able to find it quickly in the future.

 

That's it! If you have any questions about this process, reach out to Isos Technology today!

New call-to-action

Recent Articles

Isos Technology Partners with Jostens to Migrate Jira Software to Cloud and Implement Jira Service Management, Assets, & Advanced Roadmaps
Isos Technology Partners with Jostens to Migrate Jira Software to Cloud and Implement Jira Service Management, Assets, & Advanced Roadmaps
Since its founding by Carl Jostens in 1897, Jostens has been helping generation after generation celebrate life’s milestones. Whether the company is creating and customizing yearbooks or professional...
Isos Technology Isos Technology 2 MIN READ
Read More
Jira Epic vs Story vs Task: Understanding Jira Epics, Stories, and Tasks for effective project management
Understanding the difference between epics, stories, and tasks in Jira is essential for effective project management. Epics provide a broad overview, stories divide work into manageable chunks, and...
Isos Technology Isos Technology 17 MIN READ
Read More
Best Practices, Jira, Software, Governance, Projects, Statuses, Custom Fields, Apps
Jira Best Practices: Projects, Statuses, Custom Fields, and Apps Made Easy
Once you’ve nailed down the project management tools, like Jira Software and Atlassian Marketplace apps, that will work for you and your team members, it’s time to create an effective workflow. There...
Isos Technology Isos Technology 5 MIN READ
Read More