Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: Query for task not in a folder
Topic Summary:
Created On: 8-Jul-2005 08:32
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Vincent Gaudeul, on Tuesday, July 12, 2005 1:42 PM

Answer:
Hello !!!! :-)

When a task is added to a folder, a task_in_folder relation is created between these two objects. You can show this relation using CM CLI:

ccm relate -show -name task_in_folder

so to query all tasks not belonging to any folder, you can use the following CLI query:

ccm query -t task "not is_task_in_folder_of(cvtype='folder')"

Just prefix relation name by "is_" and suffix it by "_of".

Vincent
 8-Jul-2005 08:32
User is offline View Users Profile Print this message


Hans-Joachim Zimmer

Posts: 3
Joined: 23-Feb-2005

What should a query for to catch all task in a database that are not in used by any folder. Example: we receive tasks from a remote DB with a DCM (also objects with that tasks) but there are still not completed are accecpted there, so they are not part of "integrated tested .... folder". These tasks we wonna query for. Thanks
Report this to a Moderator Report this to a Moderator
 11-Jul-2005 03:04
User is offline View Users Profile Print this message


Vincent Gaudeul

Posts: 68
Joined: 10-Oct-2002

Answer Answer
Hello !!!! :-)

When a task is added to a folder, a task_in_folder relation is created between these two objects. You can show this relation using CM CLI:

ccm relate -show -name task_in_folder

so to query all tasks not belonging to any folder, you can use the following CLI query:

ccm query -t task "not is_task_in_folder_of(cvtype='folder')"

Just prefix relation name by "is_" and suffix it by "_of".

Vincent
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.