Howto bulk edit / change all subtasks

Valentijn Scholten
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.
January 14, 2013

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
Answer accepted
Ubisoft
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.
February 4, 2013

Thanks for this,

For Jira 5.1 change the href for :

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

0 votes
nigeljohnson73 March 9, 2015

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

0 votes
Valentijn Scholten January 20, 2015

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

0 votes
Virgil Carcu January 20, 2015

Hello, 

Any idea if this works in JIRA 6.3.7?

Thank you!

Suggest an answer

Log in or Sign up to answer