<html><title>Editing the Perforce Job Specification</title>
<h1>Editing the Perforce Job Specification</h1>
<p>To integrate defect trackers with Perforce, you must add some required fields
to the Perforce job specification. To edit the Perforce job specification, you
must have Perforce admin privilege. For details, refer to the description of
the <tt>p4 jobspec</tt> command in the <i>Perforce Command Reference</i>.)</p>
<p><b>To add the required fields: </b>
<ol>
<li> At the command line, issue the p4 jobspec command. Perforce launches a
text editor displaying the job specification.</li>
<li> Add the following fields (<i>nnn</i> indicates field numbers, which depend
on what’s already defined in your job specification.)</li>
<ul>
<li> <tt><i>nnn</i> DTG_FIXES text 0 optional</tt></li>
<li><tt> <i>nnn</i> DTG_DTISSUE word 32 optional</tt></li>
<li><tt> <i>nnn</i> DTG_ERROR text 0 optional </tt></li>
</ul>
<li>If you intend to define <a href="segments.html">segments</a>, add the following field: <tt>nnn DTG_MAPID word 32 optional</tt></li>
<li> If not already defined, add a date field that stores the date when the
job was last modified and a word field that contains the name of the user
who last modified the job. For example:</li>
<ul>
<li><tt> <i>nnn</i> ModDate date 20 always</tt></li>
<li><tt> <i>nnn</i> ModBy word 32 always</tt></li>
</ul>
<li> Define the default value for the preceding fields as follows:</li>
<ul>
<li> <tt>ModDate $now</tt></li>
<li><tt> ModBy $user</tt></li>
</ul>
<li> Exit the editor, saving your changes. </li>
</ol>
<hr>
<a href="about.html">About</a><br>
<a href="index.html">Contents</a><br>
<i><font size="-1">jobspec.html</font></i> </html>