Fossil SCM

Improvement to the ticket customization documentation suggested by [forum:/forumpost/31e44444cda1a7821912|forum post 31e44444cda1a7821912]

drh 2021-09-06 12:00 trunk
Commit 3fcdfb0cd8f1dce1ca7bd67238b61a879b0bf40ec3bd16e44dd8945eac1d00a3
1 file changed +15 -1
--- www/custom_ticket.wiki
+++ www/custom_ticket.wiki
@@ -67,10 +67,17 @@
6767
</pre>
6868
This bit of code will get rid of the "email" field entry for logged-in users.
6969
Since we know the user's information, we don't have to ask for it. NOTE: it
7070
might be good to automatically scoop up the user's email and put it here.
7171
</p>
72
+<p>
73
+You might also want to enable people to actually assign the ticket to a specific
74
+person during creation. For this to work, you need to add the code
75
+for "assigned_to" as shown below under the heading "Modify the 'edit ticket' page".
76
+This will give you an additional combobox where you can choose a person during
77
+ticket creation.
78
+</p>
7279
</blockquote>
7380
7481
<h2>Modify the 'view ticket' page</h2><blockquote>
7582
<p>
7683
Look for the text "Contact:" (about halfway through). Then insert these lines
@@ -95,11 +102,18 @@
95102
<pre>
96103
&lt;tr>&lt;td align="right">Assigned to:&lt;/td>&lt;td>
97104
&lt;th1>combobox assigned_to $assigned_choices 1&lt;/th1>
98105
&lt;/td>&lt;/tr>
99106
</pre>
100
-That will give you a drop-down list of assignees. Now, similar to the previous
107
+That will give you a drop-down list of assignees. The first argument to the TH1
108
+command 'combobox' is the database field which the combobox is associated to.
109
+The next argument is the list of choices you want to show in the combobox (and
110
+that you specified in the second step above. The last argument should be 1 for a
111
+true combobox (see the <a href="th1.md#combobox">TH1 documentation</a> for
112
+details).</p>
113
+
114
+<p>Now, similar to the previous
101115
section, look for "Contact:" and add this:
102116
<pre>
103117
&lt;tr>&lt;td align="right">Reported by:&lt;/td>&lt;td>
104118
&lt;input type="text" name="opened_by" size="40"
105119
value="$&lt;opened_by>">
106120
--- www/custom_ticket.wiki
+++ www/custom_ticket.wiki
@@ -67,10 +67,17 @@
67 </pre>
68 This bit of code will get rid of the "email" field entry for logged-in users.
69 Since we know the user's information, we don't have to ask for it. NOTE: it
70 might be good to automatically scoop up the user's email and put it here.
71 </p>
 
 
 
 
 
 
 
72 </blockquote>
73
74 <h2>Modify the 'view ticket' page</h2><blockquote>
75 <p>
76 Look for the text "Contact:" (about halfway through). Then insert these lines
@@ -95,11 +102,18 @@
95 <pre>
96 &lt;tr>&lt;td align="right">Assigned to:&lt;/td>&lt;td>
97 &lt;th1>combobox assigned_to $assigned_choices 1&lt;/th1>
98 &lt;/td>&lt;/tr>
99 </pre>
100 That will give you a drop-down list of assignees. Now, similar to the previous
 
 
 
 
 
 
 
101 section, look for "Contact:" and add this:
102 <pre>
103 &lt;tr>&lt;td align="right">Reported by:&lt;/td>&lt;td>
104 &lt;input type="text" name="opened_by" size="40"
105 value="$&lt;opened_by>">
106
--- www/custom_ticket.wiki
+++ www/custom_ticket.wiki
@@ -67,10 +67,17 @@
67 </pre>
68 This bit of code will get rid of the "email" field entry for logged-in users.
69 Since we know the user's information, we don't have to ask for it. NOTE: it
70 might be good to automatically scoop up the user's email and put it here.
71 </p>
72 <p>
73 You might also want to enable people to actually assign the ticket to a specific
74 person during creation. For this to work, you need to add the code
75 for "assigned_to" as shown below under the heading "Modify the 'edit ticket' page".
76 This will give you an additional combobox where you can choose a person during
77 ticket creation.
78 </p>
79 </blockquote>
80
81 <h2>Modify the 'view ticket' page</h2><blockquote>
82 <p>
83 Look for the text "Contact:" (about halfway through). Then insert these lines
@@ -95,11 +102,18 @@
102 <pre>
103 &lt;tr>&lt;td align="right">Assigned to:&lt;/td>&lt;td>
104 &lt;th1>combobox assigned_to $assigned_choices 1&lt;/th1>
105 &lt;/td>&lt;/tr>
106 </pre>
107 That will give you a drop-down list of assignees. The first argument to the TH1
108 command 'combobox' is the database field which the combobox is associated to.
109 The next argument is the list of choices you want to show in the combobox (and
110 that you specified in the second step above. The last argument should be 1 for a
111 true combobox (see the <a href="th1.md#combobox">TH1 documentation</a> for
112 details).</p>
113
114 <p>Now, similar to the previous
115 section, look for "Contact:" and add this:
116 <pre>
117 &lt;tr>&lt;td align="right">Reported by:&lt;/td>&lt;td>
118 &lt;input type="text" name="opened_by" size="40"
119 value="$&lt;opened_by>">
120

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button