Fossil SCM
Improvement to the ticket customization documentation suggested by [forum:/forumpost/31e44444cda1a7821912|forum post 31e44444cda1a7821912]
Commit
3fcdfb0cd8f1dce1ca7bd67238b61a879b0bf40ec3bd16e44dd8945eac1d00a3
Parent
86f0722e0cb0978…
1 file changed
+15
-1
+15
-1
| --- www/custom_ticket.wiki | ||
| +++ www/custom_ticket.wiki | ||
| @@ -67,10 +67,17 @@ | ||
| 67 | 67 | </pre> |
| 68 | 68 | This bit of code will get rid of the "email" field entry for logged-in users. |
| 69 | 69 | Since we know the user's information, we don't have to ask for it. NOTE: it |
| 70 | 70 | might be good to automatically scoop up the user's email and put it here. |
| 71 | 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> | |
| 72 | 79 | </blockquote> |
| 73 | 80 | |
| 74 | 81 | <h2>Modify the 'view ticket' page</h2><blockquote> |
| 75 | 82 | <p> |
| 76 | 83 | Look for the text "Contact:" (about halfway through). Then insert these lines |
| @@ -95,11 +102,18 @@ | ||
| 95 | 102 | <pre> |
| 96 | 103 | <tr><td align="right">Assigned to:</td><td> |
| 97 | 104 | <th1>combobox assigned_to $assigned_choices 1</th1> |
| 98 | 105 | </td></tr> |
| 99 | 106 | </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 | |
| 101 | 115 | section, look for "Contact:" and add this: |
| 102 | 116 | <pre> |
| 103 | 117 | <tr><td align="right">Reported by:</td><td> |
| 104 | 118 | <input type="text" name="opened_by" size="40" |
| 105 | 119 | value="$<opened_by>"> |
| 106 | 120 |
| --- 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 | <tr><td align="right">Assigned to:</td><td> |
| 97 | <th1>combobox assigned_to $assigned_choices 1</th1> |
| 98 | </td></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 | <tr><td align="right">Reported by:</td><td> |
| 104 | <input type="text" name="opened_by" size="40" |
| 105 | value="$<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 | <tr><td align="right">Assigned to:</td><td> |
| 104 | <th1>combobox assigned_to $assigned_choices 1</th1> |
| 105 | </td></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 | <tr><td align="right">Reported by:</td><td> |
| 118 | <input type="text" name="opened_by" size="40" |
| 119 | value="$<opened_by>"> |
| 120 |