Add Comment to Existing Item
Moderator: SourceGear
Add Comment to Existing Item
Hi,
I am trying to add a comment onto an existing item in Fortress, how do I do this?
I am currently using MantisItemComment and MantisItemCommentColl.
Thanks for any assistance.
I am trying to add a comment onto an existing item in Fortress, how do I do this?
I am currently using MantisItemComment and MantisItemCommentColl.
Thanks for any assistance.
There is no convenience method for setting the subject, but you could do it like this:
Code: Select all
MantisItemFullDetail mifd = ProcessCommandListFortressItemFullDetails(bugID);
MantisItem mi = new MantisItem(mifd);
mi.ChangeComment = new MantisItemComment(bugID, uid, ulogin, subject, comment);
mi.ChangeComment.Html = useHtml;
ServerOperations.client.ClientInstance.ModifyItem2(ref mi);
E-Mail Notification
The e-mail notification text appears to be different from a regular comment added using the web client.
I receive:
a) 'JoeUser has modified item...'
instead of the expected:
b) 'JoeUser has commented on...'
How can I add a comment using the API which will generate e-mail notification style b) above?
I receive:
a) 'JoeUser has modified item...'
instead of the expected:
b) 'JoeUser has commented on...'
How can I add a comment using the API which will generate e-mail notification style b) above?
Fortress 1.1.2 will now correctly supports a subject and uses the comment web service method instead of the modify web service method.
Subscribe to the Fortress/Vault blog