Editing the Perforce Job Specification
To integrate defect trackers with Perforce, you must add four 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 p4 jobspec command in the Perforce Command Reference.)
Additional fields may also need to be added should you want to replicate
additional defect tracking fields.
To add the required fields:
- At the command line, issue the p4 jobspec command. Perforce launches a
text editor displaying the job specification.
- Add the following fields (nnn indicates field numbers, which depend
on whats already defined in your job specification.)
- nnn DTG_FIXES text 0 optional
- nnn DTG_DTISSUE word 32 optional
- nnn DTG_ERROR text 0 optional
- nnn DTG_MAPID text 0 optional
- 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:
- nnn ModDate date 20 always
- nnn ModBy word 32 always
- Define the default value for the preceding fields as follows:
- Exit the editor, saving your changes.
An example minimum jobspec is described in P4DTG Minimum Jobspec
Contents
jobspec.html