View Issue Details

IDProjectCategoryView StatusLast Update
0006446mantisbtrelationshipspublic2020-05-23 05:18
ReporterAndreas Isenmann Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Summary0006446: Multiple selection for creation of parent/child relationship
Description

"View Issues" gives the possibility to select multiple issues and these selected issues can for example be assigned to a developer.

It would be a great help if it would be possible to create a relationship in this way, too.

Additional Information

If you use a parent/child relationship for release planning you have to make the relationships one by one. Perhaps you want to solve 100 issues for the next release. In this case you have to create 100 relationships and this takes a long time.

It would be much faster if you just could check these wanted issues and then make all the relationships with a new function "Create relationship".

Tagspatch

Relationships

has duplicate 0015275 closedatrol Adding issue relationships in batch 
has duplicate 0020678 closedatrol Add option of 'relationship' for multiple allocation 
has duplicate 0008390 closedatrol Add Relationships into bottom combo box in View Issues for several issues (manager and administrator profiles) 

Activities

djcarr

djcarr

2006-05-03 20:51

reporter   ~0012777

Last edited: 2006-05-03 21:07

As mentioned at http://forums.mantisbt.org/viewtopic.php?t=745, I've implemented a "Set Parent" solution.

Purpose

Make it very simple and easy to move lots of issues between releases which are represented as Parent Issues.

Changes

  • an option "Set New Parent" added to combobox in "View Issues" page
  • after selecting issues (checkboxes) and hitting OK, next page loads
  • on this page, can enter an issue number for the new parent
  • all previous child-of relationships for these issues are deleted
  • all issues are assigned child-of the new parent issue

Problems

  • Existing child-of relationships will be deleted!! Remember that when you clone issues in mantis, they are made parent-child by default (why? I always use 'related-to'). So if you "Set Parent" on issues that happen to be a child-of another relationship, you'll lose that prior relationship. If this is a problem for you, you could add an "Old Parent" ID field to the dialog, and delete only relationships to that old Parent.

  • Only sets a Child-Of relationship. No provision for other relationship types, though 0006512 will help if you need to set multiple related-tos, for example.

  • NOT READY FOR INTEGRATION INTO MANTIS This is a crude solution for my purposes only, and has only been made available at the request of others. It is not intended to be a Mantis patch and may need to be reworked or rewritten completely.

Installation

I've attached the file as SetParentDJC.zip. It's not in patch format unfortunately, but contains the files I changed in Mantis 1.0.1, and every change I made is bracketed by comments. Search for 'DJC' to find these changes and you shouldn't have any problems applying them to your installation. Back up first! Usual disclaimers apply.

Feel free to modify/improve and repost your changes here.

2006-05-03 20:52

 

SetParentDJC.zip (39,852 bytes)

2008-01-08 21:21

 

forceparent.zip (3,006 bytes)
djcarr

djcarr

2008-01-08 21:28

reporter   ~0016597

Last edited: 2008-01-08 21:34

Reimplemented this in 1.1.0 using the new EXT_ plugin model, in attached file forceparent.zip.

WARNING: Before proceeding be aware that Mantis 1.1.0 supports Target Versions which is a better way of managing numerous issues against release versions. You should ONLY need or use this plugin if you still need to move many child issues from one parent issue to another.

ANOTHER WARNING: This includes DELETE queries. Back up your database! This has worked very well for me but you should test it thoroughly with yours.

To install:

  1. extract forceparent.zip to mantis main directory. This should produce bug_actiongroup_force_parent_inc.php in main dir and relationship_force_parent_api.php in /core subdirectory.

  2. Add the four custom strings into custom_strings_inc.php (or language file):

    $s_force_parent_title = 'Set New Parent';
    $s_force_parent_msg = 'Enter the Issue # to set as the new parent.[p/]NOTE : THIS ACTION WILL REMOVE ALL EXISTING PARENTS FOR THE SELECTED ISSUES.[p/]This is a custom feature designed to help with the obsolete "Parent Issue as a Target Version" approach. Mantis now properly implements Target Versions. You should not continue unless you know what you are doing.';
    $s_force_parent_button = 'Set New Parent';
    $s_actiongroup_menu_force_parent = 'Set New Parent';

    (naturally, change square brackets to angle brackets)

  3. Add the action to config_inc.php:

    $g_custom_group_actions = array(
    <<any other custom group actions you have>>,
    array( 'action' => 'EXT_FORCE_PARENT',
    'label' => 'actiongroup_menu_force_parent' )
    );

boesman

boesman

2008-01-17 06:30

reporter   ~0016697

Hi need some assistance with update. I get the following error when running the function

PPLICATION ERROR #18

Page redirection error, ensure that there are no spaces outside the PHP block (<?php ?>) in configinc.php or custom*.php files.

Top of screen: APPLICATION WARNING #100: Configuration option '70' not found.

Relationships are created successfully

djcarr

djcarr

2008-01-17 17:16

reporter   ~0016708

Hi boesman,

This sounds like 0008212

Can you check custom_strings_inc.php and config_inc.php again? Sounds like something wrong with or around the <?php and ?> markers.

boesman

boesman

2008-01-20 23:44

reporter   ~0016740

Hi djcarr, i lookded at it but could not find any white spaces in the two files.

i also get the APPLICATION WARNING #100: Configuration option '70' not found. error showing at the top of the page.

djcarr

djcarr

2008-01-21 22:33

reporter   ~0016754

beats me sorry! does anyone else have this problem applying this plugin to 1.1.0?

Issue History

Date Modified Username Field Change
2005-12-01 05:03 Andreas Isenmann New Issue
2006-05-03 20:51 djcarr Note Added: 0012777
2006-05-03 20:52 djcarr File Added: SetParentDJC.zip
2006-05-03 20:54 djcarr Note Edited: 0012777
2006-05-03 20:59 djcarr Note Edited: 0012777
2006-05-03 21:07 djcarr Note Edited: 0012777
2008-01-08 21:21 djcarr File Added: forceparent.zip
2008-01-08 21:28 djcarr Note Added: 0016597
2008-01-08 21:28 djcarr Note Edited: 0016597
2008-01-08 21:29 djcarr Note Edited: 0016597
2008-01-08 21:30 djcarr Note Edited: 0016597
2008-01-08 21:32 djcarr Note Edited: 0016597
2008-01-08 21:32 djcarr Note Edited: 0016597
2008-01-08 21:33 djcarr Note Edited: 0016597
2008-01-08 21:34 djcarr Note Edited: 0016597
2008-01-08 21:34 djcarr Note Edited: 0016597
2008-01-17 06:30 boesman Note Added: 0016697
2008-01-17 17:16 djcarr Note Added: 0016708
2008-01-20 23:44 boesman Note Added: 0016740
2008-01-21 22:33 djcarr Note Added: 0016754
2008-03-14 01:55 vboctor Tag Attached: patch
2012-12-11 03:33 atrol Relationship added has duplicate 0015275
2016-12-16 11:23 atrol Relationship added has duplicate 0020678
2020-05-23 05:18 atrol Relationship added has duplicate 0008390