mkactivity

Creates a UCM activity

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


ClearCase LT


cleartool subcommand



Platform

UNIX


Windows


SYNOPSIS

mkact·ivity [ -c·omment· comment | -cfi·le pname | -cq·uery | -cqe·ach | -nc·omment ]

[ -hea·dline headline ] [ -in stream-selector ] [ -nset ] [ -force ] [ activity-selector ...]

DESCRIPTION

The mkactivity command creates a UCM activity. Activities track the work you do in completing a development task. An activity consists of a headline, which describes the task, and a change set, which identifies all versions of elements that are created or modified by work on the activity.

Each stream can have one current activity, which records any changes being made. Use -nset if you do not want to use an activity immediately. To begin recording changes in an activity, issue a setactivity command from a view that is attached to the activity's stream.

Behavior for ClearQuest-enabled Projects

When executed in a view that is associated with a ClearQuest-enabled project, this command generates an error. The correct way to create an activity is to use the setactivity command, specifying a ClearQuest record-ID as the activity-selector.

RESTRICTIONS

Identities: No special identity required.

Locks: An error occurs if there are locks on the following objects: the UCM project VOB.

Mastership: There are no mastership requirements.

OPTIONS AND ARGUMENTS

ASSIGNING A HEADLINE TO AN ACTIVITY. Default: The activity's name as specified by the activity-selector argument.

-hea·dline headline

Specifies a description of the activity. The headline argument can be a character string of any length. Enclose a headline with special characters in double quotes. The headline is applied to all activities created with this invocation of the command.

SPECIFYING THE STREAM. Default: The stream attached to the current view.

-in stream-selector

Specifies that the activity be created in this stream.
stream-selector is of the form: [stream:]stream-name[@vob-selector] and vob is the stream's UCM project VOB.

SETTING THE CURRENT ACTIVITY. Default: If one activity is created with this command: the newly created activity. If more than one activity is created or any number of activities is created outside a view context: none.

-nset

Specifies that the new activity not be set as the current activity for the view.

CONFIRMATION STEP. Default: Prompts for confirmation of a generated name for the activity if no name is specified by activity-selector.

-force

Suppresses the confirmation step.

NAMING THE ACTIVITY. Default: If one activity is created with this command: a generated name. If more than one activity is created: none.

activity-selector ...

Specifies one or more activities to create. The specifier must be unique within the project VOB.
You can specify an activity as a simple name or as an object selector of the form [activity]:name@vob-selector, where vob-selector specifies a project VOB (see the cleartool reference page). If you specify a simple name and the current directory is not a project VOB, then this command assumes the activity resides in the project VOB associated with the stream attached to the current view. If the current directory is a project VOB, then that project VOB is the context for identifying the activity.

EXAMPLES

The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.

The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.

In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.

SEE ALSO

chactivity, lsactivity, rmactivity, setactivity