forked from dubeaud/bugnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue Subject formatted text uses named parameters
IssueUpdatedSubject (in Global Notifications.resx) can now use any of the following named parameters: * IssueId * IssueTitle * DisplayName * FieldName * NewValue * OldValue where the FieldName, NewValue and OldValue are from the IssueHistory selected to have the highest priority (based on FieldChanged). At the moment this priority order is hard-coded as: "Title", "Status", "Resolution", "Priority", "Description" Created a FormatContentWith function in CultureContent to be used instead of the FormatContent. Based on code from: http://james.newtonking.com/archive/2008/03/29/formatwith-2-0-string-formatting-with-named-variables Would need to have, perhaps, a different subject if the value was long (such as for Description...perhaps just truncate if using?), or if the Title (as often may want to say Issue "OldValue" (id) title has changed to "NewValue", rather than Issue "Title" (id) FieldName has changed to "NewValue"
- Loading branch information
Showing
4 changed files
with
174 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.