• Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Currently, sub-tasks are ordered in the parent view by creation time, and can be moved up or down in the list by clicking on the arrows. When lists of sub-tasks becomes long, it is quite tedious to reorganize, especially when adding new higher priority sub-tasks (they start at the bottom of the list).

      It would be nice to have a feature that allows sub-tasks to be inserted at a desired position in the list, and possibly a number of sub-tasks to be moved/inserted as a bulk operation.

            [JRACLOUD-8053] Reorganize sub-task order within the parent task

            Corentin Méhat added a comment - - edited

            I managed to use the EXOCET plugin to create a new "data-panel" in order to do so :
            https://valiantys.atlassian.net/wiki/display/EXO/Display+Advanced+data+panels

            the JQL used to show the subtasks of the current task beeing :

            issuetype in subTaskIssueTypes() ORDER BY "myCF"
            

            Corentin Méhat added a comment - - edited I managed to use the EXOCET plugin to create a new "data-panel" in order to do so : https://valiantys.atlassian.net/wiki/display/EXO/Display+Advanced+data+panels the JQL used to show the subtasks of the current task beeing : issuetype in subTaskIssueTypes() ORDER BY "myCF"

            If anyone is tired with this issue you can use this WORKING solution. I managed to improve a plugin for reordering subtasks with drag n'drop created by anorakgirl. I managed to get this working without reloading the page while reordering subtasks (Jira 6.x only, on Jira 5.x it reloads the page but still it is way more convenient than using arrows) and I added clear visual handle for dragging. You can find the plugin here https://github.com/czerwiu/subtask-dragger (source and binary, install-ready jar). Works like a charm. It is forked from original anorakgirl's version.

            Pawel Czerwinski added a comment - If anyone is tired with this issue you can use this WORKING solution. I managed to improve a plugin for reordering subtasks with drag n'drop created by anorakgirl. I managed to get this working without reloading the page while reordering subtasks (Jira 6.x only, on Jira 5.x it reloads the page but still it is way more convenient than using arrows) and I added clear visual handle for dragging. You can find the plugin here https://github.com/czerwiu/subtask-dragger (source and binary, install-ready jar). Works like a charm. It is forked from original anorakgirl's version.

            Martin, you've resolved this issue as "Answered", but I think "Won't Fix" would be the more correct choice, and it would allow us to query for these types of requests in future.

            Kavian Moradhassel added a comment - Martin, you've resolved this issue as "Answered", but I think "Won't Fix" would be the more correct choice, and it would allow us to query for these types of requests in future.

            Many thanks for reporting this issue, however this is not something we plan to add to JIRA at this time.

            We are considering showing the display of sub-tasks by priority so please follow the related issue for progress: JRA-24547

            Regards,
            Martin
            JIRA team

            Martin (Inactive) added a comment - Many thanks for reporting this issue, however this is not something we plan to add to JIRA at this time. We are considering showing the display of sub-tasks by priority so please follow the related issue for progress: JRA-24547 Regards, Martin JIRA team

            @hanzmenzi you are the one! It's totally working!

            Right click on the arrow, copy link address and paste in the bar, then you indicate the values.

            Important: The sequence is 0 based.

            Ramiro Pointis added a comment - @hanzmenzi you are the one! It's totally working! Right click on the arrow, copy link address and paste in the bar, then you indicate the values. Important: The sequence is 0 based.

            I have entered this function within the "viewissue.jsp" page and now you can reorder the sub-tasks via drag and drop. My issue is that the numbers do not reorder unless you do a page refresh. Any suggestions on how to address this. Thanks.

            Chris Smith added a comment - I have entered this function within the "viewissue.jsp" page and now you can reorder the sub-tasks via drag and drop. My issue is that the numbers do not reorder unless you do a page refresh. Any suggestions on how to address this. Thanks.

            @James Titcumb:

            Thanks for your advice. I'm already using it.
            I just left the comment above to get some attention for this issue.

            Cheers,
            Patrick

            Patrick Metz added a comment - @James Titcumb: Thanks for your advice. I'm already using it. I just left the comment above to get some attention for this issue. Cheers, Patrick

            javascript:(function(){jQuery(function(){jQuery("#issuetable>tbody").sortable({start:function()

            {old_order=getorder();}

            ,stop:function(event,ui){new_order=getorder();for(i=0;i<=new_order.length;i++)

            {id=ui.item[0].id;if(id==old_order[i])oldpos=i;if(id==new_order[i])newpos=i;}

            jQuery.ajax(

            {url:'/jira/secure/MoveIssueLink.jspa?id='+jQuery('#key-val').attr('rel')+'&currentSubTaskSequence='+oldpos+'&subTaskSequence='+newpos,}

            );}});function getorder(){order=[];jQuery('#issuetable>tbody').children('tr').each(function(idx,elm)

            {if(elm.id)order.push(elm.id)}

            );return order;}});})()

            Victor Bello
            Lead Web Developer (PE)

            Victor Bello added a comment - javascript:(function(){jQuery(function(){jQuery("#issuetable>tbody").sortable({start:function() {old_order=getorder();} ,stop:function(event,ui){new_order=getorder();for(i=0;i<=new_order.length;i++) {id=ui.item[0].id;if(id==old_order[i])oldpos=i;if(id==new_order[i])newpos=i;} jQuery.ajax( {url:'/jira/secure/MoveIssueLink.jspa?id='+jQuery('#key-val').attr('rel')+'&currentSubTaskSequence='+oldpos+'&subTaskSequence='+newpos,} );}});function getorder(){order=[];jQuery('#issuetable>tbody').children('tr').each(function(idx,elm) {if(elm.id)order.push(elm.id)} );return order;}});})() Victor Bello Lead Web Developer (PE)

            Patrick - in the mean time, use the above bookmarklet, it does exactly what you need.

            James Titcumb added a comment - Patrick - in the mean time, use the above bookmarklet, it does exactly what you need.

            It would be a huge usability improvement if one could drag and drop subtasks!
            Rearranging multiple subtasks is so tedious...

            Patrick Metz added a comment - It would be a huge usability improvement if one could drag and drop subtasks! Rearranging multiple subtasks is so tedious...

            That bookmarklet is a lifesaver! Would be nice if this functionality was built into JIRA though.

            James Titcumb added a comment - That bookmarklet is a lifesaver! Would be nice if this functionality was built into JIRA though.

            Ken Kil added a comment -

            We would definitely like this ability on the Task Board section of Greenhopper, as well as the ability to move subtasks to another parent.

            Ken Kil added a comment - We would definitely like this ability on the Task Board section of Greenhopper, as well as the ability to move subtasks to another parent.

            Jan Thure Bolstad added a comment - - edited

            I've made a small function to activate drag’n drop sorting of subtask lists. Seems to work fine. Use it as a bookmarklet or load it automatically with Greasemonkey (or some other method).

            (function(){jQuery(function(){jQuery("#issuetable>tbody").sortable({start:function()

            {old_order=getorder();}

            ,stop:function(event,ui){new_order=getorder();for(i=0;i<=new_order.length;i++)

            {id=ui.item[0].id;if(id==old_order[i])oldpos=i;if(id==new_order[i])newpos=i;}

            jQuery.ajax(

            {url:'/jira/secure/MoveIssueLink.jspa?id='+jQuery('#key-val').attr('rel')+'&currentSubTaskSequence='+oldpos+'&subTaskSequence='+newpos,}

            );}});function%20getorder(){order=[];jQuery('#issuetable>tbody').children('tr').each(function(idx,elm)

            {if(elm.id)order.push(elm.id)}

            );return%20order;}});})()

            Feel free to suggest improvements. (The MoveIssueLink.jspa page sends a location header to reload the page. Maybe there's some way to avoid that extra page load.)

            Jan Thure Bolstad added a comment - - edited I've made a small function to activate drag’n drop sorting of subtask lists. Seems to work fine. Use it as a bookmarklet or load it automatically with Greasemonkey (or some other method). (function(){jQuery(function(){jQuery("#issuetable>tbody").sortable({start:function() {old_order=getorder();} ,stop:function(event,ui){new_order=getorder();for(i=0;i<=new_order.length;i++) {id=ui.item[0].id;if(id==old_order[i])oldpos=i;if(id==new_order[i])newpos=i;} jQuery.ajax( {url:'/jira/secure/MoveIssueLink.jspa?id='+jQuery('#key-val').attr('rel')+'&currentSubTaskSequence='+oldpos+'&subTaskSequence='+newpos,} );}});function%20getorder(){order=[];jQuery('#issuetable>tbody').children('tr').each(function(idx,elm) {if(elm.id)order.push(elm.id)} );return%20order;}});})() Feel free to suggest improvements. (The MoveIssueLink.jspa page sends a location header to reload the page. Maybe there's some way to avoid that extra page load.)

            Hans Menzi added a comment -

            Victor it was a template for a link, not an actual link.

            Right click on the arrow you click to move the sub-tasks up or down, and you will see the appropriate link for your installation.

            Hans Menzi added a comment - Victor it was a template for a link, not an actual link. Right click on the arrow you click to move the sub-tasks up or down, and you will see the appropriate link for your installation.

            That link doesn't work.

            Victor Bello added a comment - That link doesn't work.

            Hans Menzi added a comment -

            I have been able to manually move subtasks around by doing the following, and it has saved me some time:

            http://jirasvr/secure/MoveIssueLink.jspa?id=%ISSUEID%&currentSubTaskSequence=%MOVEFROM#%&subTaskSequence=%MOVETO#%

            Note that the sequence is 0 based, so -1 from the #'s

            Hans Menzi added a comment - I have been able to manually move subtasks around by doing the following, and it has saved me some time: http://jirasvr/secure/MoveIssueLink.jspa?id=%ISSUEID%&currentSubTaskSequence=%MOVEFROM#%&subTaskSequence=%MOVETO#% Note that the sequence is 0 based, so -1 from the #'s

            Hans Menzi added a comment -

            I have had numerous people ask for drag drop functionality here for this.
            Others have mentioned the ability to just be able to sort by priority or status.
            Any progress that could be made on this issue would be appreciated.

            Hans Menzi added a comment - I have had numerous people ask for drag drop functionality here for this. Others have mentioned the ability to just be able to sort by priority or status. Any progress that could be made on this issue would be appreciated.

            Dan Tanner added a comment -

            In my situation, since we have greenhopper and use the ranking field, what would solve this issue for me (maybe a quick initial fix for most others too?) is to modify the sorting of the subTaskView page to sort by Ranking if it's there. Then you could use the planning board for drag n drop re-sorting functionality, but use the subTaskView for working your tasks.

            Dan Tanner added a comment - In my situation, since we have greenhopper and use the ranking field, what would solve this issue for me (maybe a quick initial fix for most others too?) is to modify the sorting of the subTaskView page to sort by Ranking if it's there. Then you could use the planning board for drag n drop re-sorting functionality, but use the subTaskView for working your tasks.

            Also, moving only seems to work if you are using rank. We're not using this because we sort our Stories by Business Value.
            We then like to have our tasks (per story) sorted in the logical order of getting things done (e.g., Write Requirements Doc, Review Requirements, Write Design, etc.). Tasks are ordered okay if on creation you’ve thought of all necessary tasks. If you forget one, there’s no way to insert it in logical order – so reading/working on story with tasks is challenging.

            Story 1 Business Value 10
            Task 1
            Task 2
            Task 3
            Story 2 Business Value 10
            Story 3 Business Value 20

            Bonnie McCarthy added a comment - Also, moving only seems to work if you are using rank. We're not using this because we sort our Stories by Business Value. We then like to have our tasks (per story) sorted in the logical order of getting things done (e.g., Write Requirements Doc, Review Requirements, Write Design, etc.). Tasks are ordered okay if on creation you’ve thought of all necessary tasks. If you forget one, there’s no way to insert it in logical order – so reading/working on story with tasks is challenging. Story 1 Business Value 10 Task 1 Task 2 Task 3 Story 2 Business Value 10 Story 3 Business Value 20

            I agree with Mark. I want the ability to drag and drop the item into the correct order in the list just like with GreenHopper in the planning board for prioritization.
            I've had stories with over 40 sub-tasks, and it's very tedious to move a newly created task from the bottom to the top of the list.

            Sandra Nevardauskis added a comment - I agree with Mark. I want the ability to drag and drop the item into the correct order in the list just like with GreenHopper in the planning board for prioritization. I've had stories with over 40 sub-tasks, and it's very tedious to move a newly created task from the bottom to the top of the list.

            We have many tasks with dozens of sub-tasks. Our product owners like to keep their sanity by ordering sub-tasks according to delivery order. They want to be able to drag and drop the tasks just like GreenHopper allows tasks to be ranked. Drag and drop would be nice - but really anything better than moving items one up or one down at a time would be preferred.

            Mark Mielke added a comment - We have many tasks with dozens of sub-tasks. Our product owners like to keep their sanity by ordering sub-tasks according to delivery order. They want to be able to drag and drop the tasks just like GreenHopper allows tasks to be ranked. Drag and drop would be nice - but really anything better than moving items one up or one down at a time would be preferred.

            This is a very time consuming omission. You should be able to identify where you wish to locate a sub-task at creation time or when you convert an issue to a sub-task.

            Gregory Bell added a comment - This is a very time consuming omission. You should be able to identify where you wish to locate a sub-task at creation time or when you convert an issue to a sub-task.

            Like Netflix reorders the queue.

            Jeff McMillan added a comment - Like Netflix reorders the queue.

              Unassigned Unassigned
              5cda7d3b902b Adriano Bertucci
              Votes:
              74 Vote for this issue
              Watchers:
              28 Start watching this issue

                Created:
                Updated:
                Resolved: