Howto bulk edit / change all subtasks

Based on a javascript in https://jira.atlassian.com/browse/JRA-13079 created by Brian Mortenson I created a javascript snippet that you can paste into your announcement banner.

This will allow users easy access to show the list of all subtasks in the issue-navgiator.

From there you can use bulk change as usual.

My users are very happy with this, so I just thought I'd share it were with you.

Kudos to Brian of course!

<script type="text/javascript">

AJS.$(document).ready(function(){

    var matches = location.pathname.match(/browse\/([A-Z]+-[0-9]+)/),
        list, id, item, link;

	    if (matches){
			id = matches[1];

			list = document.getElementById('subtask-view-options');
			if (list) {

				link = document.createElement('a');
					link.href = '/issues/?jql=parent%20%3D%20' + id,
					link.className = 'aui-list-checked aui-list-item-link',
					link.title = 'Show and edit subtasks in navigator',
					link.innerHTML = 'Edit All';

				item = document.createElement('li');
				item.className = 'aui-list-item';
					
				list.appendChild(item);
				item.appendChild(link);
			}
		}
	})

</script>

4 answers

1 accepted

Thanks for this,

For Jira 5.1 change the href for :

link.href = '/jira/secure/IssueNavigator!executeAdvanced.jspa?jqlQuery=parent%20%3D%20' + id,

Hello, 

Any idea if this works in JIRA 6.3.7?

Thank you!

It works in 6.3.4 so I think it will work in 6.3.7

This no longer works in the OnDemand version of 6.4 for security reasons, is there anywhere else I can insert this?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,001 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot