You can associate the specified task with specified objects, specified change requests, or with a specified task being fixed. For association with objects, any user that has modify access to the task can perform this operation. For association with a change request, any user that has modify access to the change request can perform this operation. The change request must be in a state that allows task association.
The task requirements for associating a task with a task to be fixed are as follows:
- Tasks related to each other can be from different databases.
- Tasks to be fixed must be in either the completed or excluded state.
- A fix task must be modifiable by the user establishing the relationship.
- A task can only fix one task.
About this task
ccm task -a|-associate|-relate task_spec -obj|-object file_spec...
ccm task -a|-associate|-relate task_spec -fixes task_spec
ccm task -a|-associate|-relate task_spec
-prob|-problem|-change_request change_request_spec...
- change_request_spec
- Specifies the change requests associated with the task. You can set the change_request_spec to multiple change requests. For details, see Change request specification.
- file_spec
- Specifies the object to be associated with the task. The object can be a project, directory, or file. For details, see File specification.
- -fixes task_spec
- Specifies the task to be fixed. You can set the task_spec to one task. For more details, see Task specification.
- -prob|-problem|-change_request
- Specifies the change request to be associated with the task.
Example
- Associate task 17 with the object MAIN.C-3:csrc:1.
ccm task -a 17 -obj MAIN.C-3:csrc:1
- Associate task 54 with change request D#1231.
ccm task -associate 54 -change_request D#1231
- Create a relationship between the fix task (19) and the task to be fixed (4).
ccm task -relate 19 -fixes 4