Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylar-dev] CC's and other interested parties

> Given a Task, is there a way to get the CC's and other interested
> parties?  (commenters, etc...)  

If it is an AbstractRepositoryTask that has been synchronized with the 
repository a RepositoryTaskData object can be retrieved by calling 
getTaskData(). The RepositoryTaskData object maps keys defined in 
RepositoryTaskAttribute through a repository specific factory to values. 

To get the cc's for a task you would have to call 
task.getTaskData().getAttributeValues(RepositoryTaskAttribute.USER_CC) or 
call task.getTaskData().getCC() which wraps that call and is even easier. The 
comments are stored in TaskComment objects and returned by getComments(). 
They have an attribute USER_OWNER that stores the author of the comment (or 
you can use TaskComment.getAuthor()).

Hope that helps.

Steffen

-- 
Steffen Pingel - steffenp@xxxxxx - http://steffenpingel.de


Back to the top