We need help to create a set of Jira automation rules for story points to automate calculation of different points. We have a company-managed project.
Issue structure:
Level 1: Epic
Level 0: Task
Level -1: Subtask
Our Fields:
- Story points
- Story points remaining (Story points minus Story points from Closed tasks)
- Value points (value to business)
- Return of investment (ROI points) = Value points / Story points remaining
We need rules to calculate:
1. Total Story points / story points remaining of parents from the lowest level if story points of children are changed or status changes.
We already have a rule that semi works for this, but it does not update on all levels. For example, if we edit story points of a subtask, then the parent-task will be calculated correctly, but not for the Epic.
2. If user changes a parent tasks story points, but children-tasks contains story points, then an automation rule should recalculate the story points to override the users changes.
3. If possible, we also want to include "blocked by"-tasks in the calculation for sub-tasks.
Not sure if this is possible to achieve.
4. If value points are 0 or empty, or story points remaining becomes 0/empty, then ROI points should be set to empty
5. If value points and story points remaining is greater than 0, then it should calculate ROI value (Value points / Story points remaining)