Page 1 of 1

Hyperlinks as 123:456

Posted: 30 Nov 2017, 22:43
by Starbuck
I've seen references to issue:note in the mantisbt.org tracker. What's the syntax to create that elegant link?
Are you guys using #123:~456?
Are you copy/pasting the link associated with a note so that it renders as 123:456 ?

I'm just setting up a new environment and have changed the simple references to a more complex "ticket:123 note:456". This is to avoid conflicts with code, references to repo commits, and other technical syntax posted into the tracker.

Since we're here, has anyone considered using an array for the prefix? { 'ticket:', 'bug#', 'issue#', 'issue:' ... }

Thanks.

Re: Hyperlinks as 123:456

Posted: 01 Dec 2017, 06:38
by atrol
The linking can be configured.
Check options $g_bug_link_tag and $g_bugnote_link_tag on https://www.mantisbt.org/docs/master/en ... onfig.misc

Re: Hyperlinks as 123:456

Posted: 07 Dec 2017, 17:38
by Starbuck
Respectfully, I demonstrated that I already know how to change linking. I asked specific questions that are not answered in the doc. Thanks.

Re: Hyperlinks as 123:456

Posted: 07 Dec 2017, 20:09
by atrol
Seems I don't understand your last question, so let me just reply to the other ones.
Starbuck wrote:What's the syntax to create that elegant link?
It's ~456 for example
Starbuck wrote:Are you guys using #123:~456?
No
Starbuck wrote:Are you copy/pasting the link associated with a note so that it renders as 123:456 ?
No

Re: Hyperlinks as 123:456

Posted: 15 Dec 2017, 18:48
by Starbuck
OK, I've found that if I use #123 ~456 with a space between them, Mantis changes the space to a colon to show 123:456 as a single link.
That's cool and I'm happy, just didn't know the trick.
Thanks!

Re: Hyperlinks as 123:456

Posted: 02 Jan 2018, 19:17
by Starbuck
Correction+Update: Now I understand what @atrol meant by
It's ~456 for example
If we use just #number, we get a ticket reference. If we use just ~number, the link that is created is "ticket:note".
I thought we needed to specify both #ticket and ~note, which of course is a bit redundant.

For my purposes, we use ticket:123 and note:456, because these are explicit and less ambiguous than # and ~. And we use the term "ticket" because not everything is a "bug" or an "issue" - the latter of which is a subtlety of the English language that may not apply to some others.