Add Start & Due Dates to Stories and Epics, Update Epic status
In my last automation article, I mentioned how I learned how to make Jira work for me, but in reality, Jira did not do any work for me—it just enforced following a certain rule. For this article, I wanted to ensure we put Jira to work and have it help by performing a task. One of the challenges my teams and I encountered was keeping our epics updated. The epic is in a “backlog” status, and the team is working on stories, but we never update the epic status. In another case, we completed all the stories for the epic, but the epic was never moved to “done.” In this article, I will cover how to get Jira to automatically move the epic along with the stories as the work progresses through the backlog. I will also explain how to attach 'start' and 'in progress' dates so that accurate velocity can be tracked.
We will be setting up two different automations in this example:
Both automation prompts follow the same steps but are performed in different fields.
Example:
The second part of the automation is to update the epic now that the story has been updated. We will set up a separate “branch” to perform the updates on the epic. The “branch” allows us to specify other conditions and set up additional actions to be performed based on the same trigger.
The epic will only be updated once, as the first condition under the “Branch” checks the status. If the epic is already “In Progress” then the “Branch” portion of the rule will not run. That is it; you have set up the rule to attach the epic to the associated stories so it will follow the stories as they progress through the backlog. Screenshots of the entire rule are below:
The setup of the automation rule to add a “Due Date” when the story and epic have moved to “Done” follows the same steps as the rule we just set up with one additional step under the “branch” portion. The selections under the steps will be different, and we will edit the “Due Date” field. Screenshots of the entire rule are below (the additional step is the one inside the black box in the screenshot below).
Now that you have set up these automations, you do not have to worry about the challenges that my teams and I faced previously— your epics will stay updated! Not only will the epic’s status stay updated, but you will also have one additional benefit— all the stories and epics will have the actual “Start Date” and “Due Date” fields populated. One advantage of having the start and due dates on all the stories and epics is that the “Timeline” feature looks nice and clean. Another good thing about this automation is that it will overwrite any existing dates that you may have put on the epics or stories during planning sessions, so the dates that you see on the story or epic will be the actual date the story/epic move to “In Progress” or “Done.” One additional benefit of having the dates populated is that you can get the cycle time for the story or epic by clicking on it— it will show you the “Start Date” and “Due Date.” I would also recommend updating the card layout under your board settings and adding “Start Date” and “Due Date” fields to be visible on the stories when displayed on the board. One more thing to mention is that users will receive email notifications from "Automation for Jira" for any actions performed, from status changes to updating the "Start Date" or "Due Date" fields. I hope this automation will help you/your teams and take some work off your hands. Follow along for future articles!