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