![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: Query for al all tasks in the update properties Topic Summary: How can I query for al list of all tasks in the update(reconfigure) properties of a project or project grouping ? Created On: 20-Feb-2008 14:53 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
What is the syntax for a query that does this, i found the quiery functions for doing this for a baseline, but not for a project/project grouping.
|
|
![]() |
|
![]() |
|
Hi Robin,
If you're using the CLI, probably the easiest way is to use: ccm project_grouping -show all_tasks project_grouping_spec It is possible to do this via a query expression. For that, you need to know two things: 1) How to query for objects that are related to some object with a specified relation name. Use the is_relation_name_of('source_object') query function to find objects with the relation _relation_name from the specified source_object (as a 4-part objectname). Use the has_relation_name('destination_object') query function to find objects that have the specified relation to the destination_object (specified as a 4-part objectname). These query functions are documented in the CLI help. 2) The names of relationships used. Many of these are documented in the CLI help. For example, a saved task in a project grouping uses a relation named "saved_task_in_pg". An added task in a project grouping uses a relation named "added_task_in_pg". However, please be aware that such queries are then dependent on the base model data representation. If this representation changes in a future release of Synergy, then any scripts written that depend on the older representation will need to be updated. So from a scripting point of view, it is better to use the built-in ccm pg -show all_tasks command since that provides an abstraction of the underlying representation and will work even if the data representation changes. Hope this helps, Kind regards, David. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.