How to add attributes to e-mail template?
One answer
Hi Malaya,
According to https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.workitem.doc/topics/r_email_template_variables.html&scope=null:
The WorkItem type gives access to any attribute of the work item by using its ID: get(id) . For example, you can use ${workItem.get("my.custom.attribute.id")} to reference custom attributes. Note that the type of the return value depends an the attribute type. Because the teamArea property can be null, you should check whether it is null before accessing it.
Please let us know if that helps.
According to https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.workitem.doc/topics/r_email_template_variables.html&scope=null:
The WorkItem type gives access to any attribute of the work item by using its ID: get(id) . For example, you can use ${workItem.get("my.custom.attribute.id")} to reference custom attributes. Note that the type of the return value depends an the attribute type. Because the teamArea property can be null, you should check whether it is null before accessing it.
Please let us know if that helps.
Comments
Hi Malaya,
I have moved your next question to separate topic: https://jazz.net/forum/questions/150871/how-to-get-work-item-history-in-e-mail-notification