Automatically append text to the summary field
![](http://jazz.net/_images/myphoto/a48ec80e50c4a4d3c224fc4544492744.jpg)
Accepted answer
![](http://jazz.net/_images/myphoto/a48ec80e50c4a4d3c224fc4544492744.jpg)
Attribute Customizations can help you.
You could write a Script based Calculated value for it and set the dependency of the Summary field to the custom attributes. In your script, you need to carefully read the values of all three fields, Summary and Custom Attr1 and Custom Attr2 and create a return string which is returned to Summary.
return workItem.getValue(WorkItemAttributes.SUMMARY) + " attr1 : " + workItem.getValue("customAttr1ID") + " attr2 : " + workItem.getValue("customAttr2ID");
for more details on writing script based calculated value, refer to :
https://jazz.net/wiki/bin/view/Main/AttributeCustomization
You could write a Script based Calculated value for it and set the dependency of the Summary field to the custom attributes. In your script, you need to carefully read the values of all three fields, Summary and Custom Attr1 and Custom Attr2 and create a return string which is returned to Summary.
return workItem.getValue(WorkItemAttributes.SUMMARY) + " attr1 : " + workItem.getValue("customAttr1ID") + " attr2 : " + workItem.getValue("customAttr2ID");
for more details on writing script based calculated value, refer to :
https://jazz.net/wiki/bin/view/Main/AttributeCustomization
One other answer
![](http://jazz.net/_images/myphoto/a48ec80e50c4a4d3c224fc4544492744.jpg)
Hello,
Yes, this is possible. I think the a solution (not sure if it's the "simpliest way" but it do the job) would be to create an operation participant which do that. On workitem save operation, you get the content of the custom attribute and modify the summary filed.
You may take a look at RTC extension workshop : https://jazz.net/library/article/1000
Regards,
Sylvain
Yes, this is possible. I think the a solution (not sure if it's the "simpliest way" but it do the job) would be to create an operation participant which do that. On workitem save operation, you get the content of the custom attribute and modify the summary filed.
You may take a look at RTC extension workshop : https://jazz.net/library/article/1000
Regards,
Sylvain