How do I show all comments for a work item

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
DetroitJ
Posts: 19
Joined: Fri Sep 26, 2008 12:10 pm
Location: Morrisville, NC
Contact:

How do I show all comments for a work item

Post by DetroitJ » Tue Oct 21, 2008 10:05 am

Is there a way to list all of the comments for a particular work item?

shannon

Re: How do I show all comments for a work item

Post by shannon » Tue Oct 21, 2008 10:33 am

You need to get the MantisItemFullDetail object (from ProcessCommandListFortressItemFullDetails). Then loop through the MantisItemCommentColl (MantisItemFullDetail.Comments).

DetroitJ
Posts: 19
Joined: Fri Sep 26, 2008 12:10 pm
Location: Morrisville, NC
Contact:

Re: How do I show all comments for a work item

Post by DetroitJ » Tue Oct 21, 2008 10:48 am

Thank you. I was trying to find something to use in FortressItemExpanded.

shannon

Re: How do I show all comments for a work item

Post by shannon » Tue Oct 21, 2008 10:57 am

Yeah, that encapsulation makes it easy to add/modify work items, but to get to the full item MantisItemFullDetail is the way to go.

Post Reply