Simply do a cleartool mkact
:
cd /pat/to/your/UCM/view
cleartool mkact aNewAct
That will create and set a new activity to your current view.
Any checkout/checkin after that will use that curent activity.
For Clearquest-enabled projects, see "About creating UCM activities in a project enabled for Rational ClearQuest":
You do not create UCM activity objects directly.
In a project that is enabled for Rational® ClearQuest®, an activity usually refers to two objects that are linked together:
- a UCM activity object and
- a record in a Rational ClearQuest user database whose record type is enabled for UCM.
The process of creating an activity in a project that is enabled for Rational ClearQuest entails the creation of two objects in a specific order:
- You create records (based on a record type that is enabled for UCM) in a Rational ClearQuest user database.
- On Windows®, you can create records from the Rational ClearQuest client or, if policy permits, from Rational ClearCase® windows (Check Out, Check In, or Add to Source Control).
- On UNIX®, you can create records only from the Rational ClearQuest client.
- When you set an activity in a view (which you can do by clicking
Actions > WorkOn
for a Rational ClearQuest user database record), the following occurs:
- An activity object is created in the stream to which the view is attached.
- The activity object is linked to the record in the Rational ClearQuest user database whose record type is enabled for UCM.
The name of the Rational ClearCase activity is set to match the Rational ClearQuest record's ID.