The Presets: field
All fields with a field type of anything other than
optional
require default values. To assign a default value
to a field, create a line in the jobspec form under Presets
consisting of the field name to which you’re assigning the default value.
Any single-line string can be used as a default value.
The following variables are available for use as default values.
Variable | Value |
---|---|
|
The
Helix server
user creating the job, as specified by the |
|
The date and time at the moment the job is saved. |
|
The text When users enter jobs, any fields in your jobspec with a preset
of |
The lines in the Presets
: field for the standard jobs
template are:
Presets: Status open User $user Date $now Description $blank
Using Presets: to change default fix status
The Presets:
entry for the job status field (field 102) has
a special syntax for providing a default fix status for p4 fix
, p4 change -s
, and p4
submit -s
.
To change the default fix status from closed
to some other
fixStatus
(assuming that your preferred
fixStatus
is already defined as a valid
select
setting in the Values:
field), use the
following syntax:
Presets: Status openStatus,fix/fixStatus
In order to change the default behavior of p4 fix
,
p4 change
, and p4 submit
to leave
job status unchanged after fixing a job or submitting a changelist, use
the special fixStatus
of same
. For
example:
Presets: Status open,fix/same
Your search for returned result(s).