Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Default Watcher Notification Alert Template

emails
templates
breeze

I have changed the default "When watched items changed" Watcher Notifcation Alert template and it is erroring. I need the default one back! The default came with a count of changed items...

I simply copied and pasted the changes I had made to the "When new things are added" Created template although apparently the AlertTypeWatchersTemplateModel does not accept things like LinkViewItem; resulting in

After Issue Event Line: 59 Col: 45 Error: 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' does not contain a definition for 'LinkViewItem' and no extension method 'LinkViewItem' accepting a first argument of type 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' could be found (are you missing a using directive or an assembly reference?) Line: 75 Col: 127 Error: 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' does not contain a definition for 'TheItem' and no extension method 'TheItem' accepting a first argument of type 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' could be found (are you missing a using directive or an assembly reference?) Line: 84 Col: 127 Error: 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' does not contain a definition for 'TheItem' and no extension method 'TheItem' accepting a first argument of type

Please attach the default HTML and advise what arguments can be used in the Watcher Notification Alert Type...

Regards, Victoria

Victoria.Demaio
· 1
Victoria.Demaio
Replies (6)
helpful
0
not helpful

Hiya, an update to this... I managed to get the default html from the AppNav template, so that part is ok...

I would still like to know what Gemini specific code can be used under the AlertTypeWatchersTemplateModel

Thanks


Victoria.Demaio
· 1
Victoria.Demaio
helpful
-1
not helpful

Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks Saar although the Breeze: Response Templates documentation has been useful when setting up Alert Templates of type When Created and When Resourced, it does not appear relevant to Watcher Notifcations.

For example, using @(Model.TheItem.ResourceNames) within a Watcher Notification causes an error.

Additionally, for each Watcher Notification being sent out at the moment, I am getting the following error sent:


Unhandled exception: Line: 51 Col: 12 Error: 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' does not contain a definition for 'TheItemsCreated' and no extension method 'TheItemsCreated' accepting a first argument of type 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' could be found (are you missing a using directive or an assembly reference?) Line: 70 Col: 29 Error: 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' does not contain a definition for 'TheItemsCreated' and no extension method 'TheItemsCreated' accepting a first argument of type 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' could be found (are you missing a using directive or an assembly reference?) Line: 183 Col: 12 Error: 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' does not contain a definition for 'TheItemsCommented' and no extension method 'TheItemsCommented' accepting a first argument of type 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' could be found (are you missing a using directive or an assembly reference?) Line: 202 Col: 29 Error: 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' does not contain a definition for 'TheItemsCommented' and no extension method 'TheItemsCommented' accepting a first argument of type 'Countersoft.Gemini.Mailer.AlertTypeWatchersTemplateModel' could be found (are you missing a using directive or an assembly reference?)

//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.269 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------


Can you please direct me to the relevant documentation for using Watcher Notifications?

Regards, Victoria


Victoria.Demaio
· 1
Victoria.Demaio
helpful
0
not helpful

Just to be clear, I am looking for a list of available classes of Model followed by the available members.

For example, I currently know of

Model.TheItem

Model.TheBag

and the relevant members are listed in the documentation (eg .Type and .Status)

I can see Model.TheItemsCreated being used in the default Watcher Notification although it is not documented anywhere.

I would like a documentation on ALL available values in the Gemini Model.


Victoria.Demaio
· 1
Victoria.Demaio
helpful
1
not helpful
ANSWER

We are in the process of adding these documents. For watchers you need to use the @Model.TheItemsUpdated collection. These are the properties of the item object (@Model.TheItemsUpdated[0]):

Reporter
AffectedVersionNumbers
Age
ClosedDateString
ComponentNames
Created
CreatedString
CustomFields  - you can access custom fields by name (eg. CustomFields[“mycustomfieldname”].Entity.Data)
Description
DueDateString
Elapsed
EstimatedEffort
EstimatedHours
EstimatedIncludingKids
EstimatedMinutes
ExcessTime
ExcessTimeOrTimeLeft
FixedInVersion
Id
IsClosed
IsExcessTime
IsResolved
IssueKey
LastComment
LoggedHours
LoggedIncludingKids
LoggedMinutes
OriginatorData (if created via email – Breeze)
PercentComplete
Points
Priority
PriorityImage
ProjectCode
ProjectName
RemainingTime
Resolution
ResolvedDateString
ResourceNames
RevisedString
Severity
SeverityImage
StartDateString
Status
StatusImage
TimeLogged
Title
Type
TypeImage
Visibility
Votes

Mark Wing
· 9108
Mark Wing
0
DELETED.  House Rules

Victoria.Demaio
· 1
Victoria.Demaio
helpful
0
not helpful

Thanks Mark, exactly what I was after; I have used this to write the watcher alerts we needed.


Victoria.Demaio
· 1
Victoria.Demaio