38

Creating a link to an issue in Mantis is done via the hash symbol # followed by the issue number.

  • Example: #123

How do I link to a note?

udo
  • 4,832
  • 4
  • 54
  • 82
  • This feature is annoying to me. Can I turn that off? It should be off by default IMO. – Jonny Jan 21 '16 at 05:26
  • don't know if you can turn it off. in case not, you could use `$g_bugnote_link_tag` to customize it to something else than the default `~`. – udo Jan 21 '16 at 09:11
  • Yes I changed it, I think to false or something, or ### etc, I think it works so far. – Jonny Jan 21 '16 at 09:19

2 Answers2

42

Use the ~ symbol, i.e ~42 to link to the bugnote with the id 42. The prefix is configurable using the $g_bugnote_link_tag setting.

A little clarification, if needed, taken from here: the ~ notation works a little different according to MantisBT version. In 1.1.x shows only the NoteID (e.g., 0026006), but since 1.2.x and above, the link was changed to IssueID:NoteID (e.g., 0009261:0026006).

Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
  • 4
    Is there a way to link to an attachment/image from the note? – Agnel Kurian Aug 27 '13 at 05:20
  • @AgnelKurian you can simply copy/paste the link from the "Attached Files" section, but I don't think there's a way to quick link like the # or ~. There'a also some html support by default under $g_html_valid_tags. And of course plugins which may do this. – scipilot Dec 02 '13 at 22:20
  • 1
    @scipilot, If I copy and paste links, and later I have to move my Mantis installation to a new server or directory, the links become invalid. – Agnel Kurian Dec 03 '13 at 08:12
16

Form this : http://inform7.com/mantis/view.php?id=259 :

 Also for future reference: you can link to another issue by prefixing
 the issue number with #, or link to a comment by prefixing the comment
 number with ~.


 # 259 (without the space) => 0000259
 ~ 559 (without the space) => 0000259:0000559
Vouze
  • 1,678
  • 17
  • 10
  • 3
    Is there actual documentation on this? It would be nice if you didn't have to search the bugtracker's bugtracker to discover the syntax of your bugtracker. :s – TKH Jan 11 '19 at 21:18