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

0 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,787 views 18 22
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