Issue 849: Support TrackingIds in subject as well as footer
Status:  New
Owner: ----
Reported by darksk...@gmail.com, Feb 18, 2011
It has been a long term standard for my team before the move to git and gerrit to use the subject:

BUG:XXXX - comment

ScanTrackingIds does not match on the commit message subject, only the footer.


Jul 16, 2011
#1 madco...@gmail.com
Our team is also in the habit of placing ticket ids in the summary, but without any sort of prefix (e.g., "JIRA-123: fixes the bug").

I think it would be useful to expand Gerrit's tracking id support (trackingid.*) to match the way the commentlink.* works.  commentlink converts anything that looks like a tracking id (per the match config) into a hyperlink -- and it even matches my example above.  But tracking id (which doesn't auto-link anything) only scans the footer, and requires the .footer string as a prefix.
May 26, 2012
#2 ed.smith...@softwire.com
Note that you can use commentlinks for this. The match will not be highlighted in the main subject title, but is in the full changelog message displayed below that.
May 26, 2012
#3 jhans...@myyearbook.com
@Ed, please reread comment number 1. We're talking about trackingids, not commentlinks. The discussion is about being able to search with "tr:..." keyword. Comment 1 clearly says that commentlinks is not what we're talking about.
Nov 2, 2012
#4 Devin_Li...@sigmadesigns.com
We also use our bug numbers in the subject line since it's easier to see the bugs when using a oneline log.

I think this would be a huge boon for us as we could make really nice search URLs to find all changes related to a bug.
Sep 11, 2014
#5 mav...@cpqd.com.br
Gerrit has the secondary index (like Lucene) now. I think this feature is not needed anymore.
Sep 11, 2014
#6 jhans...@meetme.com
@mav: it does, but that still does not get indexed as a "trackingid", so that e.g., the "tr:JIRA-123" search predicate would find it.  "message:JIRA-123" does work now that Lucene is being used for fulltext search, but it doesn't get indexed as a tracking id.
May 15, 2015
#7 totoroli...@gmail.com
When will this feature been implemented?
to support trackingid not only in footer section but also in subject section of the comment

Oct 27, 2015
#8 fabio.po...@gmail.com
We also use put reference to bug numbers in the subject line, so it would be great if trasckid could be used for the subject line too.