Fossil SCM: Linking Tickets to Checkin's
authorTomas Zeman <tomas@functionals.cz>
Fri, 31 Dec 2021 12:25:17 +0100
changeset 41 c4f9f37e9a28
parent 40 eace2739e6b8
child 42 754c00b59e01
Fossil SCM: Linking Tickets to Checkin's http://chiselapp.com/user/cutterpillow/repository/fossil-iOS/wiki?name=Cookbook#ticket-checkin-links
fossil/ticket-checkin-link
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fossil/ticket-checkin-link	Fri Dec 31 12:25:17 2021 +0100
@@ -0,0 +1,26 @@
+http://chiselapp.com/user/cutterpillow/repository/fossil-iOS/wiki?name=Cookbook#ticket-checkin-links
+
+Linking Tickets to Checkin's
+
+It's easy to link a checkin to a ticket... simply include [ticket-uuid] in your commit comment. Now, when you do that, you also have the ability to link a ticket to the associated checkin(s).
+
+This is just one way of doing this, and what I decided to do. You can of course alter it for your own style/layout.
+
+First: Add a "Short UUID" to your View Ticket page. You can do this by:
+
+<th1>
+set shortUuid [string range $tkt_uuid 0 9]
+</th1>
+
+Then, display that to the user somewhere:
+
+Uuid: $<shortUuid>
+
+All that does is make it easy for the developer to copy/paste a sensible UUID into their commit log.
+
+Now, continuing, on the same View Page add a link to view associated tickets:
+
+<a href="$<baseurl>/timeline?y=ci&s=$<shortUuid>">associated tickets</a>
+
+What this does is searches all checkin's for the tickets uuid, thus, you can now see all checkin's that are linked with the given ticket.
+