/
Copy watchers to sub-tasks
Copy watchers to sub-tasks
Call this script on a set schedule. The script adds the watchers from the parent issue to all subtasks.
string [] keys = selectIssues("key in silJQLList(\"silJql_IssuesWithSubtasks.sil\", \"Project = EX\") AND statusCategory not in (Done)");
for(string k in keys) {
for(string s in subtasks(k)) {
%s%.watchers += %k%.watchers;
}
}
The JQL script can be replaced with the predefined hasSubtasks JQL function.
This script is used in silJQL to return a list of all issues with subtasks. It takes a JQL search as parameter.
It is recommended to use silJQLList, for example, the key in silJQLList("silJql_IssuesWithSubtasks.sil", "Project = EX").
string [] keys = selectIssues(argv[0]);
string [] ret;
for(string k in keys) {
if(size(subtasks(k)) != 0) {
ret += k;
}
}
return ret;
, multiple selections available,
Related content
Copy watchers to sub-tasks
Copy watchers to sub-tasks
More like this
Add Subtask User(s) to Parent Issue Watchers List
Add Subtask User(s) to Parent Issue Watchers List
More like this
Copy the reporter and watchers on duplicate issues
Copy the reporter and watchers on duplicate issues
Read with this
Add Subtask User(s) to Parent Issue Watcher List post function
Add Subtask User(s) to Parent Issue Watcher List post function
More like this
Subtasks
Subtasks
More like this
Close parent issue when all subtasks are done
Close parent issue when all subtasks are done
More like this