Page 1 of 2
remove tags which are no longer useful
Posted: 01 Feb 2018, 19:19
by SunnyMantis
I have a tag named 'nouse', which has been attached to a few of issues in mantis, e.g. 100 of them containing tag 'nouse', can I first remove the tag from these 100 issues; second delete this 'nouse' tag , making it no longer existing ?
Re: remove tags which are no longer useful
Posted: 01 Feb 2018, 21:49
by atrol
Why do you want first remove the tag from issues?
You can delete a tag, if you don't need it any longer.
After that, the tag is no longer attached to any issue.
Re: remove tags which are no longer useful
Posted: 05 Feb 2018, 14:08
by SunnyMantis
I see. thank you!
before I remove the tag, I always want to know who is using this tag, and where used, is there a quick way to review ?
to remove this tag, I just do that from database level 'delete' ?
Re: remove tags which are no longer useful
Posted: 05 Feb 2018, 14:27
by atrol
SunnyMantis wrote: 05 Feb 2018, 14:08I always want to know who is using this tag, and where used
It's listed under Manage > Manage tags
Click the tag you want to remove to get page "Tag Details".
There is a button "Attached issues" to get the list of issues where the tag is attached.
SunnyMantis wrote: 05 Feb 2018, 14:08
to remove this tag, I just do that from database level 'delete' ?
Why database level? There is a button "Delete Tag" on the same page mentioned above.
Re: remove tags which are no longer useful
Posted: 05 Feb 2018, 16:54
by SunnyMantis
oh, I see, end user can do that on their own. good.
Re: remove tags which are no longer useful
Posted: 05 Feb 2018, 16:57
by SunnyMantis
our version still 1.1.7, cannot see any thing like Manage > Manage tags , anywhere to enable that, please ?
Re: remove tags which are no longer useful
Posted: 05 Feb 2018, 18:53
by atrol
SunnyMantis wrote: 05 Feb 2018, 16:57
our version still 1.1.7, cannot see any thing like Manage > Manage tags , anywhere to enable that, please ?
No, this functionality has been introduced 2009 in version 1.2.
https://www.mantisbt.org/bugs/view.php?id=10026
Re: remove tags which are no longer useful
Posted: 05 Feb 2018, 19:27
by SunnyMantis
Then so bad, we can only go database level to arrange tag related operation
no wonder so much junk in our database , so anything you suggest me do next ?
Re: remove tags which are no longer useful
Posted: 06 Feb 2018, 10:56
by atrol
SunnyMantis wrote: 05 Feb 2018, 19:27anything you suggest me do next ?
It's your decision to choose between
- go on using quite outdated Mantis and delete data from database using SQL
- update Mantis and delete data from database using UI
Re: remove tags which are no longer useful
Posted: 12 Feb 2018, 15:42
by SunnyMantis
Thank you!
while , update mantis ---- from v1.1.7 ?
how ? I can run a higher version of mantis , but cannot get data from 1.1.7 running on higher version.
Re: remove tags which are no longer useful
Posted: 12 Feb 2018, 18:56
by atrol
Re: remove tags which are no longer useful
Posted: 13 Feb 2018, 14:32
by SunnyMantis
we have discussed about upgrading 1.1.7, but not possible; we can only deal with the data from 1.1.7 , mapping over to another tool, such as jira.

Data wise, we need mantis data;
Interface wise, we are not able to continue on mantis, sadly.
Re: remove tags which are no longer useful
Posted: 13 Feb 2018, 15:24
by atrol
Ok, so if you don't delete the tags in database, then delete them in Jira.
Re: remove tags which are no longer useful
Posted: 13 Feb 2018, 16:09
by SunnyMantis
Yes, we can do that to organize tags/labels.
One more thing: for tags which only created, but not attached to any issue, can we pull those out of database by a select query somehow ?
for example, although tag XXXXX in tag dropdown list, but nobody ever used this XXXXX tag, what can be used to identify such situation in database, please ?
Re: remove tags which are no longer useful
Posted: 13 Feb 2018, 21:07
by atrol
Check current ERD, it should not be very different from 1.1.x concerning tags, but I didn't check
https://www.mantisbt.org/docs/master/en ... es/erd.png
For differences between 1.1.x and 1.3.x or 2.x check admin/schema.php