How to find objects not associated to any task?
Answer
There are instances when users create objects in Telelogic Synergy without associating them to a task. However, a s a good CM practice, it is recommended to associate every object in Telelogic Synergy with a task.
Run the following command after starting a Synergy command line or classic client session to get all the objects not associated to a task.
In Synergy 6.3 and newer:
ccm query "has_attr('source') and is_no_associated_cv()"
In Synergy 6.2 and earlier:
ccm query "has_attr('source') and not is_associated_cv_of(cvtype = 'task')"
The above command will list out all objects which has 'source' attribute (primarily source type objects) and not associated to any task.
If you wish to add these objects to a task, please refer to FAQSCM0217 ( How do I associate/disassociate an object with a task from the command line? ) as found in the Related Documents section below.
Products
Synergy
Product version
6.0, 6.1, 6.2, 6.3, 6.4, 6.5
Related Documents
How do I associate/disassociate an object with a task from the command line?
Answer
To associate or disassociate objects and tasks using the command line interface you can use the 'ccm task' command or the 'ccm relate' command. The object should be specified by 4-part name. As an example, to associate foo.c to task 75, perform the following command:
% ccm task -associate 75 -obj foo.c-1:csrc:1
To disassociate foo.c from task 75, perform the following command:
% ccm task -disassociate 75 -obj foo.c-1:csrc:1
The 'ccm relate' command is typically used for object to object relations. For example, to make clear-2 a successor to clear-1:
% ccm relate -n successor -f clear-1 -t clear-2
Please see the Synergy Help Documentation for further information on the 'ccm task' and 'ccm relate' commands.
Products
Synergy
Product version
SYNERGY/CM 4.5, 5.0, 5.1, 5.1cs, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5
Reference ID
FAQSCM0217
Related Documents
How to find objects not associated to any task?
Last Modified Date:06-13-2007ID:
How can I find all objects (cv's) associated with a specific task, say task 1:
1188) task205841 task205841#1:task:probtrac task_assigned
Answer
The following ccm commands will show all objects associated to a particular task:
% ccm task -show objs 1 (CCM 4.5 or later)
or
% ccm query "is_associated_object_of('task1-1:task:probtrac')"
Note that in a database initialized for DCM, the probtrac instance on task and problem objects are replaced by the database's DCM id.
Products
Synergy
Product version
CM Synergy 5.0, 5.1, 5.1cs, 6.0, 6.1, 6.2, 6.3, 6.4
Reference ID
FAQSCM0179
Our tasks ids are like this:
1189) task2054842 task205842#1:task:probtrac completed
1191) task2058844 task205844#1:task:probtrac task_automatic
1192) task2075845 task205845#1:task:probtrac completed
1194) task2105847 task205847#1:task:probtrac task_assigned
No comments:
Post a Comment