プロジェクト

全般

プロフィール

Vote #76448

未完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
20063
author_id:
80618
assigned_to_id:
0
comments:
15
status_id:
1
tracker_id:
3
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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

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

This patch adds the syntax issue#, 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.


journals

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

!{width: 325px; border: 1px solid #ccc;}.issue-link-sample.png!
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
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).
--------------------------------------------------------------------------------
@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
--------------------------------------------------------------------------------
+1

I have created another issue for the format thing: #26465. Would you mind considering this as well?
--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
> In my opinion, I think it is better to track the format change in a new issue.

Isn't #26465 a new issue?
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

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


related_issues

relates,New,26465,Make the format of issue links configurable
relates,Closed,29488,##123 syntax for linking to issues with tracker name and subject

Admin Redmine さんが約4年前に更新

  • カテゴリText formatting_26 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0