remove tags which are no longer useful

Get help from other users here.

Moderators: Developer, Contributor

SunnyMantis
Posts: 60
Joined: 03 Jan 2018, 15:39
Location: Toronto, Canada

remove tags which are no longer useful

Post 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 ?
atrol
Site Admin
Posts: 7959
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: remove tags which are no longer useful

Post 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.
Please use Search before posting and read the Manual
SunnyMantis
Posts: 60
Joined: 03 Jan 2018, 15:39
Location: Toronto, Canada

Re: remove tags which are no longer useful

Post 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' ?
atrol
Site Admin
Posts: 7959
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: remove tags which are no longer useful

Post 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.
Please use Search before posting and read the Manual
SunnyMantis
Posts: 60
Joined: 03 Jan 2018, 15:39
Location: Toronto, Canada

Re: remove tags which are no longer useful

Post by SunnyMantis »

oh, I see, end user can do that on their own. good.
SunnyMantis
Posts: 60
Joined: 03 Jan 2018, 15:39
Location: Toronto, Canada

Re: remove tags which are no longer useful

Post by SunnyMantis »

our version still 1.1.7, cannot see any thing like Manage > Manage tags , anywhere to enable that, please ?
atrol
Site Admin
Posts: 7959
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: remove tags which are no longer useful

Post 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
Please use Search before posting and read the Manual
SunnyMantis
Posts: 60
Joined: 03 Jan 2018, 15:39
Location: Toronto, Canada

Re: remove tags which are no longer useful

Post 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 ?
atrol
Site Admin
Posts: 7959
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: remove tags which are no longer useful

Post 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
Please use Search before posting and read the Manual
SunnyMantis
Posts: 60
Joined: 03 Jan 2018, 15:39
Location: Toronto, Canada

Re: remove tags which are no longer useful

Post 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.
atrol
Site Admin
Posts: 7959
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: remove tags which are no longer useful

Post by atrol »

Check Administrator Guide on how to upgrade
https://www.mantisbt.org/docs/master/en ... ll.upgrade
Please use Search before posting and read the Manual
SunnyMantis
Posts: 60
Joined: 03 Jan 2018, 15:39
Location: Toronto, Canada

Re: remove tags which are no longer useful

Post 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.
atrol
Site Admin
Posts: 7959
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: remove tags which are no longer useful

Post by atrol »

Ok, so if you don't delete the tags in database, then delete them in Jira.
Please use Search before posting and read the Manual
SunnyMantis
Posts: 60
Joined: 03 Jan 2018, 15:39
Location: Toronto, Canada

Re: remove tags which are no longer useful

Post 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 ?
atrol
Site Admin
Posts: 7959
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: remove tags which are no longer useful

Post 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
Please use Search before posting and read the Manual
Post Reply