vote up 2 vote down
star

I have cases linked to my case in the see also section. I want to remove the links. How do I do it?

Fog Creek Case FC1259445

flag
NB: we have an open case to address the inability to remove relations. We intend to support this eventually. It's just harder to do right than one would imagine. – Rich Armstrong Feb 5 at 16:25

2 Answers

vote up 1 vote down

A warning about modifying the database directly...

I had to do delete a cross-reference yesterday (I added an incorrect cross-reference to a case which had the potential to cause huge confusion). After I deleted the bad entry from the bugrelation table, I also deleted the corresponding event from the bugevent table. Unfortunately, this had been the last bugevent for the bug, and so FogBugz couldn't find the event corresponding to the ixBugEventLatest field in the bug table and refused to display it in any filters...

I used this to look for other instances where I might have inadvertently deleted the last bugevent for a bug:

SELECT b.ixBug,MAX(ixBugEvent),b.ixBugEventLatest
  FROM bug b
  JOIN bugevent e
    ON b.ixBug = e.ixBug
 WHERE (SELECT MAX(x.ixBugEvent)
          FROM bugEvent x
         WHERE x.ixBug=e.ixBug) <> b.ixBugEventLatest
GROUP BY e.ixBug;
link|flag
I once performed 'DELETE ixBugEventLatest FROM BugEvent', caused the same problem. I wrote a little C# program to generate some SQL which I could run to fix it: for (int ix = 1; ix <= MAX_IX_BUG; ix++){ Console.WriteLine("update bug set ixBugEventLatest = (select top 1 ixBugEvent from BugEvent where ixBug = " + ix + " order by ixBugEvent desc) where ixBug = " + ix + ";");} – Jude Allred Feb 12 at 19:35
vote up 1 vote down
check

This is not changeable in the UI in FogBugz 7. For now, the only option is to remove the relevant rows from the BugRelation table directly in the database. This requires direct access (i.e. locally installed FogBugz). Whenever you make changes directly in the database, make sure to back it up first.

Note: adding and removing subcases to a case is possible. This answer concerns the see also links created when you type "case XYZ" into a case.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.