Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira Automation: How to make Epic status change by percentage of completed stories of epic

Jonathan Chatfield May 7, 2024

Hello,

I have automated the process of story's status automatically changed at a certain percent of completed of sub-tasks status to Done. I am now looking at automatically updating the epic status progress from the completion of percentage of the automated story status with Done to change the Epic status to In Progress then after all the automated stories statuses are in  Done Status then put the Epic status to Done status as well. My To Do status category is Backlog. 
example.jpgThis is a project plan so we are going to have every task be a sub-task and those tasks live in Stories then every story is under a umbrella of a epic. Here is a example of that setup! 

I do not have the function LookupIssue and I have been told that I will need to do a process that uses REST API. I do not know much about this process but I am excited to hear from anyone out there! =D

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2024

Hi @Jonathan Chatfield 

You describe your automation rules do not have the Lookup Issues action; thus I am guessing you have Jira Server, correct?

If so...

First thing, please write some JQL which returns the child (and grandchild) issues for an epic, without returning the epic itself.

Then your rule could use the Send Web Request action to call the REST API issue search with that JQL.  Here is a how-to article for that technique and the issue search function documentation.

When you have the response, you could use math expressions and smart value, list filtering to get the percentage from the count "done" / total count.

Kind regards,
Bill

0 votes
Dave Rosenlund
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 7, 2024

Hi, @Jonathan Chatfield. I'm not a developer myself, but I do have some getting-started tips for you:

 

Hope it helps,

-dave

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events