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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
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