I am using the following code to get the ECR number and description value.
// Get the ECR Description and Number value and set to local attribute
wt.change2.WTChangeRequest2 cr = (wt.change2.WTChangeRequest2)primaryBusinessObject;
changeDescription = cr.getDescription().toString();
ecrNumber = cr.getNumber().toString();
I use these two variables in my Instructions section of the assigned task {ecrNumber} and {changeDescription}. Both of these work as expected and I see the results in the Instructions of the Windchill task and email. However, I would like to use these in the Task Name but it doesn't seem to be working. Is there more to using these variables in the Task name other than entering {ecrNumber} in the name field of the task?
Thanks,
James Little
CAD Admin
Corning Cable Systems