Hyperlinks as 123:456

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Starbuck
Posts: 219
Joined: 14 Feb 2006, 02:53
Location: USA
Contact:

Hyperlinks as 123:456

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

Re: Hyperlinks as 123:456

Post 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
Please use Search before posting and read the Manual
Starbuck
Posts: 219
Joined: 14 Feb 2006, 02:53
Location: USA
Contact:

Re: Hyperlinks as 123:456

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

Re: Hyperlinks as 123:456

Post 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
Please use Search before posting and read the Manual
Starbuck
Posts: 219
Joined: 14 Feb 2006, 02:53
Location: USA
Contact:

Re: Hyperlinks as 123:456

Post 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!
Starbuck
Posts: 219
Joined: 14 Feb 2006, 02:53
Location: USA
Contact:

Re: Hyperlinks as 123:456

Post 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.
Post Reply