fossil/ticket-checkin-link
changeset 41 c4f9f37e9a28
equal deleted inserted replaced
40:eace2739e6b8 41:c4f9f37e9a28
       
     1 http://chiselapp.com/user/cutterpillow/repository/fossil-iOS/wiki?name=Cookbook#ticket-checkin-links
       
     2 
       
     3 Linking Tickets to Checkin's
       
     4 
       
     5 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).
       
     6 
       
     7 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.
       
     8 
       
     9 First: Add a "Short UUID" to your View Ticket page. You can do this by:
       
    10 
       
    11 <th1>
       
    12 set shortUuid [string range $tkt_uuid 0 9]
       
    13 </th1>
       
    14 
       
    15 Then, display that to the user somewhere:
       
    16 
       
    17 Uuid: $<shortUuid>
       
    18 
       
    19 All that does is make it easy for the developer to copy/paste a sensible UUID into their commit log.
       
    20 
       
    21 Now, continuing, on the same View Page add a link to view associated tickets:
       
    22 
       
    23 <a href="$<baseurl>/timeline?y=ci&s=$<shortUuid>">associated tickets</a>
       
    24 
       
    25 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.
       
    26