why using RTCWCL cannot update for custom attribute ?
hi,
I have an custom attribute added in RTC and its ID is DevelopmentBranch, however, RTCWCL cannot update it and threw an exception that the attribute is not avaiable.
"Exception! Attribute not available at work item: DevelopmentBranch Value: 'testInput'"
But if I manually give it a value and save it in RTC website, then running the WCL command can pass without any issue.
Anyone know what is the problem ?
c:\RTCWCL\wcl>wcl -update /ignoreErrors repository="xxxxxxx" user=xxxxx password="xxxxx" id=800947 DevelopmentBranch="testInput"
c:\RTCWCL\wcl>set JAVA_HOME=..\TeamConcert\jdk
c:\RTCWCL\wcl>set PLAIN_JAVA=../PlainJavaAPI
c:\RTCWCL\wcl>..\TeamConcert\jdk\jre\bin\java -Dhttp.proxyHost=xxxxxx -Dhttp.proxyPort=3128 -Djava.security.policy=rmi_no.policy -Djava.ext.dirs=./lib;../PlainJavaAPI;..\TeamConcert\jdk/jre/lib/ext -cp ./lib;../PlainJavaAPI -jar wcl.jar -update /ignoreErrors repository="xxxxxx" user=xxxxxx password="xxxxxx" id=800947 DevelopmentBranch="testInput"
StartTime: May 9, 2024 9:41:58 AM
WorkItemCommandLine Version 6.0
Starting Team Platform ...
Executing command: update
Updating work item 800947.
Exception! Attribute not available at work item: DevelopmentBranch Value: 'testInput'. Check the work item type or consider synchronizing the attributes.
Ignored.......
Updated work item 800947.
Success!
EndTime: May 9, 2024 9:42:08 AM
Accepted answer
If you create a custom attribute, it is not automatically added to existing work items. There is a special UI action that you need to perform for this this is called synchronize attributes. WCL does not automatically add the attribute, if it does not exist at the work item hence it says
Updating work item 800947.
Exception! Attribute not available at work item: DevelopmentBranch Value: 'testInput'. Check the work item type or consider synchronizing the attributes.