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

This widget could not be displayed.

Thanks for this,

For Jira 5.1 change the href for :

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

This widget could not be displayed.

Hello, 

Any idea if this works in JIRA 6.3.7?

Thank you!

This widget could not be displayed.

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

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

171 views 1 3
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