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: Move non-completed tasks to next release?
Topic Summary:
Created On: 2-Aug-2004 19:50
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 Lorin Johnson, on Tuesday, August 3, 2004 2:46 PM

Answer:
Thanks all,
I got it....I read the manual! (they don't have an embarassed smiley)

I did the following:
ccm query "(type='task') and (((release='4.3') and not (status='completed')) or (release='4.4'))"
ccm task -modify -release 4.4 @

Then I did the following to change the automatic tasks back to 4.3:
ccm query "(type='task') and (release='4.4') and (status='task_automatic')"
ccm task -modify -release 4.3 @

Now I won't forget!
Thanks again,
Lorin
 2-Aug-2004 19:50
User is offline View Users Profile Print this message


Lorin Johnson

Posts: 3
Joined: 2-Aug-2004

Hi,
I am fairly new at this, and need to move about 248 non-completed tasks from release 4.3 to release 4.4. Is there a easy way to do this other than individually as ccm_root?
Thanks,
Lorin
Report this to a Moderator Report this to a Moderator
 2-Aug-2004 22:08
User is offline View Users Profile Print this message


Todd Alden

Posts: 71
Joined: 4-Oct-2002

You can do this from the command line. First query for the non-completed tasks (make sure to omit automatic tasks). Then use the ccm attr command to modify the release value of all the tasks (specify "@" as the object argument for the ccm attr command). From the command line, a build_mgr should be able to do this.
Report this to a Moderator Report this to a Moderator
 2-Aug-2004 23:09
User is offline View Users Profile Print this message


Lorin Johnson

Posts: 3
Joined: 2-Aug-2004

Thanks for the info, but what are automatic tasks, and how do I find out if I have any?

Just before I got your reply, I did this:

ccm query "(type='task') and ((release='4.3') and not (status='completed'))"
ccm task -modify -release 4.4 @

Which doesn't omit automatic tasks. I should have waited an hour more! Is this a problem?

Lorin

Report this to a Moderator Report this to a Moderator
 3-Aug-2004 13:53
User is offline View Users Profile Print this message


Mert Vuraldi

Posts: 22
Joined: 2-Feb-2004

Hi Lorin,

"automatic tasks" are created by CMS itself, usually based on actual release value,
project purpose and/or owner.
The collect "product" objects and "project" object (in order to keep track of subprojects).
You can taek a look at these tasks by switching "show automatic tasks" in the
projects reconfigure properties.
You may query for objects with status task_automatic, too.

regards,

Mert
Report this to a Moderator Report this to a Moderator
 3-Aug-2004 14:46
User is offline View Users Profile Print this message


Lorin Johnson

Posts: 3
Joined: 2-Aug-2004

Answer Answer
Thanks all,
I got it....I read the manual! (they don't have an embarassed smiley)

I did the following:
ccm query "(type='task') and (((release='4.3') and not (status='completed')) or (release='4.4'))"
ccm task -modify -release 4.4 @

Then I did the following to change the automatic tasks back to 4.3:
ccm query "(type='task') and (release='4.4') and (status='task_automatic')"
ccm task -modify -release 4.3 @

Now I won't forget!
Thanks again,
Lorin
Report this to a Moderator Report this to a Moderator
 3-Aug-2004 15:12
User is offline View Users Profile Print this message


lyes guerroui

Posts: 21
Joined: 17-Jun-2003

Hmmm,

Are you sure that changing the task release is suffisant ? may the release of the associated objets be changed too ?

I created a windows script to change the task and associated objects :





@echo off

if "%1"=="" goto usage
if "%2"=="" goto usage

ccm delim >cmqry00.txt
FOR /F "delims=" %%I IN (cmqry00.txt) DO set delimiteur=%%I

set tache=task%2
ccm query -n %tache% >NULL:
if "%errorlevel%"=="0" goto verif_release
echo.
echo La tache specifiee est introuvable !
goto fin


:verif_release
ccm release -l >cmqry.txt
FOR /F "delims=:" %%I IN (cmqry.txt) DO if "%%I"=="%1" goto rechercher
echo.
echo La release specifiee est inexistante !
goto fin


:rechercher
echo.
echo ----------------------------------------------------------------------
ccm query -n %tache% -f "%%name %%release" -u
echo ----------------------------------------------------------------------
ccm query is_associated_object_of('%tache%%delimiteur%1:taskrobtrac') -f "%%objectname %%owner %%status %%release" -u
echo ----------------------------------------------------------------------
echo.
choice Etes-vous sur de vouloir changer la release de la tache %2 et ses objets associes en %1 ? /cn
if errorlevel 2 goto stopper
if errorlevel 1 goto executer


:executer
ccm query -n %tache% >NULL:
ccm attr -m release -v %1 @1 >NULL:
ccm query is_associated_object_of('%tache%%delimiteur%1:taskrobtrac') >NULL:
ccm attr -m release -v %1 @ >NULL:
echo.
echo Changement de release en %1 effectue avec succes.

goto fin


:stopper
echo.
echo Operation de changement de release stoppee ??

goto fin


:usage
echo.
echo CHANGE_RELEASE v2.0
echo Change la release d'une tache avec tous ses objets associes
echo.
echo Usage: change_release [numero_nouvelle_release] [numero_tache]
echo.

goto fin

:fin
if exist cmqry00.txt del cmqry00.txt
if exist cmqry.txt del cmqry.txt









Hope help you by this remark,

Lyes GUERROUI
Lotsys France.

Report this to a Moderator Report this to a Moderator
 4-Aug-2004 13:15
User is offline View Users Profile Print this message


Todd Alden

Posts: 71
Joined: 4-Oct-2002

FYI, you may change the release value on the associated objects, but it is not necessary. It is the task's release value that is used by reconfigure.

If I rmeember correctly, since the objects are static, you must be ccm_admin to change the release value on the objects. This being the case, I reccommend against changing the object's release value. IMHO, you want to do as few operations as ccm_admin as possible, and should restrict the ccm_admin role to only those that truely need to admin the system (not build managers). This is one of the best ways to keep your data safe and your users out of trouble.

Edited: 4-Aug-2004 at 13:22 by Todd Alden
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.