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: Querying the attributes related to a task
Topic Summary:
Created On: 26-May-2004 17:56
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 Scott Basham, on Friday, March 11, 2005 5:04 PM

Answer:
Thank you for the reply Henrik.

While researching for a faster solution I found out that you can use -f %attr_name option to get the value of all the attributes in one go !! But now the question is to return the task, so that I could use it with -f option. There could be 100s of tasks, how do you return a task by its id??

Thanks,
Ravi
 26-May-2004 17:56
User is offline View Users Profile Print this message


Scott Basham

Posts: 4
Joined: 1-Dec-2003

Hello Everybody,

I was wondering if there is a way that you can return the values of the attributes of a particular task. i.e. I want to know the values of all the attributes for a particular task.

Regards and Thanks,
Ravi Hasija
Report this to a Moderator Report this to a Moderator
 27-May-2004 07:35
User is offline View Users Profile Print this message


Henrik Jönsson

Posts: 9
Joined: 3-Jun-2003

If you want _all_ the attributes you can use the ccm attr -la command to first get all the attributes and the loop over the answers and call ccm attr -s $attribute on each attribute.

Something like this in bourne shell:

for attribute in `ccm attr -la @1 | awk '/./ {print $1}'`
do
ccm attr -s $attribute @1
done

The code is not tested, so you might need to adjust it.

Maybe there is a simpler version of this.

Regards

Henrik
Report this to a Moderator Report this to a Moderator
 27-May-2004 16:35
User is offline View Users Profile Print this message


Scott Basham

Posts: 4
Joined: 1-Dec-2003

Answer Answer
Thank you for the reply Henrik.

While researching for a faster solution I found out that you can use -f %attr_name option to get the value of all the attributes in one go !! But now the question is to return the task, so that I could use it with -f option. There could be 100s of tasks, how do you return a task by its id??

Thanks,
Ravi
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 0 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 0 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.