workItem.categoryName in an email template
In the email template, by using the "workItem.categoryName" you get the "filed against" value inserted in the email.
If we have sub categories under a main category, in there a way to get the "Filed Against (Top Level)" in an email which is generated from RTC.
Currently by using workItem.categoryName it just shows the sub category, but we like to have the top category (or parent..)
One answer
Ratheesh,
as the top level category is not persisted in the work item by default (just the actual "filed against" in the workItem.categoryName) the email mechanism would not have anything to retrieve and parse.
I looked at the Email Wiki and also the used language VLT but that does not seem to provide any mechanism to parse more info. So the only viable solution I currently see (aside from filing an Enhancement Request to have workItem.categorypath be included as a List of the category hierarchy) would be:
- introduce a custom attribute in your work item, but do not expose it on the Editors
- make this dependant on changes of Filed Against
- when Filed Against is changed, it will be parsed to stuff the "top level category) into that hidden custom attribute
Then you can use that custom attribute in your email template as per the wiki.
Would this be an acceptable approach? If this answers your question, please mark it as accepted.
Best,
Arne
as the top level category is not persisted in the work item by default (just the actual "filed against" in the workItem.categoryName) the email mechanism would not have anything to retrieve and parse.
I looked at the Email Wiki and also the used language VLT but that does not seem to provide any mechanism to parse more info. So the only viable solution I currently see (aside from filing an Enhancement Request to have workItem.categorypath be included as a List of the category hierarchy) would be:
- introduce a custom attribute in your work item, but do not expose it on the Editors
- make this dependant on changes of Filed Against
- when Filed Against is changed, it will be parsed to stuff the "top level category) into that hidden custom attribute
Then you can use that custom attribute in your email template as per the wiki.
Would this be an acceptable approach? If this answers your question, please mark it as accepted.
Best,
Arne
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 11 '14, 9:50 a.m.Ratheesh Madathil
Jun 13 '14, 6:06 a.m.