Project

General

Profile

Actions

Patch #20063

closed

Add "issue#<number>" syntax for issue links

Patch #20063: Add "issue#<number>" syntax for issue links

Added by Olivier Houdas over 11 years ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-

Description

For most Redmine items (news, documents, wiki articles...), the link displays the title as the link's text, and follows the syntax: news#<number>, document#<number>, etc.

For issues, the only syntax is simply #<number>, and shows the issue number as the link's text.

This patch adds the syntax issue#<number>, and will display the bug title followed by the bug status as the link text.
The patch does not remove anything, it only adds a new syntax.


Files

IssueLinkFormatting.patch (2.35 KB) IssueLinkFormatting.patch Olivier Houdas, 2015-06-10 11:49
20063-Redmine-3.4.1.patch (1.94 KB) 20063-Redmine-3.4.1.patch Olivier Houdas, 2017-07-13 11:37
issue-link-sample.png (4.99 KB) issue-link-sample.png Go MAEDA, 2017-07-14 07:18

Related issues 2 (1 open — 1 closed)

Related to Redmine - Feature #26465: Make the format of issue links configurableNewActions
Related to Redmine - Patch #29488: ##123 syntax for linking to issues with tracker name and subjectClosedGo MAEDAActions

Updated by Toshi MARUYAMA over 11 years ago Actions #1

  • Category changed from Issues to Text formatting

Updated by Olivier Houdas over 9 years ago Actions #2

Here is the patch for Redmine 3.4.1

Updated by Go MAEDA over 9 years ago Actions #3

Interesting feature. I think this patch makes Redmine links more consistent.
Here is an example. "issue#14" is converted as follows:

Updated by Fernando Hartmann over 9 years ago Actions #4

+1

Updated by Marius BĂLTEANU over 9 years ago Actions #5

I agree that supporting the issue#id is a good idea and will make redmine links more consistent, but I'm not sure that is a good idea to have different formats for displaying the issue title. Maybe is better to have a setting to choose the issue title format (like we have for users).

Updated by Olivier Houdas over 9 years ago Actions #6

@Marius: I'm not sure what you mean by "to have different formats for displaying the issue title".
The added format is simply putting the link title of the #<number> tooltip into the link text itself when using issue#<number>. There is no change of format, apart a colon replaced by brackets to avoid colon repetition:
#14 -> link text "14" with tooltip: "Bug: Private issue on public project (New)"
issue#14 -> link text "14: (Bug) Private issue on public project (New)" with no tooltip

Updated by Robert Schneider over 9 years ago Actions #7

+1

I have created another issue for the format thing: #26465. Would you mind considering this as well?

Updated by Marius BĂLTEANU over 9 years ago Actions #8

Olivier Houdas wrote:

@Marius: I'm not sure what you mean by "to have different formats for displaying the issue title".
The added format is simply putting the link title of the #<number> tooltip into the link text itself when using issue#<number>. There is no change of format, apart a colon replaced by brackets to avoid colon repetition:

Exactly what you said, having different formats for issue links depending on the syntax used:

#14 -> link text "14" with tooltip: "Bug: Private issue on public project (New)"
issue#14 -> link text "14: (Bug) Private issue on public project (New)" with no tooltip

Updated by Marius BĂLTEANU over 9 years ago Actions #9

Robert Schneider wrote:

+1

I have created another issue for the format thing: #26465. Would you mind considering this as well?

In my opinion, I think it is better to track the format change in a new issue.

Updated by Robert Schneider over 9 years ago Actions #10

In my opinion, I think it is better to track the format change in a new issue.

Isn't #26465 a new issue?

Updated by Olivier Houdas over 9 years ago Actions #11

Well, you have the short display (with #<nb>) and the extended display (with issue#<nb>). I don't see why it should be an issue to add the possibility to have a new formatting.
At least, in my company, I've implemented this patch for more than 2 years now, and both forms are used alternatively by users, depending on what they need, and nobody ever complained about being mislead by the two syntaxes.

Updated by Robert Schneider over 9 years ago Actions #12

Okay, it's just a patch. Of course, the format can be changed. I just thought that it may finds its way into Redmine and then it would have been nice if the Redmine settings could offer an option for that.

Updated by Toshi MARUYAMA over 9 years ago Actions #13

  • Related to Feature #26465: Make the format of issue links configurable added

Updated by Marius BĂLTEANU about 8 years ago Actions #14

  • Related to Patch #29488: ##123 syntax for linking to issues with tracker name and subject added

Updated by Marius BĂLTEANU about 8 years ago Actions #15

In #29488 is introduced a new syntax for linking to issues that includes tracker name and subject.

Updated by Go MAEDA 2 months ago Actions #16

  • Status changed from New to Closed

Redmine 4.0.0 added the ##123 syntax (#29488). It shows the tracker name, the issue number and the subject as the link text.

This gives almost the same result as the syntax proposed here, so I am closing this issue.

Actions

Also available in: PDF Atom