Monitoring parent task's sub-tasks for changes

While using sub-tasks we want to monitor main tickets and review updates if there is at least one sub-task been upgraded.

Is there a way in JQL to build report that show main tickets with updated recently sub-tickets only?

Thank you!

1 answer

1 vote
Alexey Matveev Community Champion Jan 20, 2018

Hello,

You could use Power Scripts for the task. You could create a file called jqlRecentlyUpdatedSubtasks.sil with the following code:

string [] keys = selectIssues(argv[0]);
string [] ret;
for(string k in keys) {
   for (string subTaskKey in subtasks(k)) {
         date recentlyUpdated = currentDate() - argv[1];
         runnerLog(recentlyUpdated);
         if (%subTaskKey%.updated > recentlyUpdated){
           ret += subTaskKey;
         }
   }
    
}
return ret;

Let's say you want to see all tasks which subtask were update no longer than 2days ago. You would use the following JQL function

key in silJQLList("jqlRecentlyUpdatedSubtasks.sil", "project = projectKey", "1d")

You can read more about Power Scripts here

https://confluence.cprime.io/display/TR

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 11 hours ago in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

38 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you