public class Project extends BaseAsset
STATE_ACTIVE, STATE_CLOSED
ASSET_STATE_VALUE, ASSET_VALUE, CHANGE_DATE_UTC, CONTENT_TYPE_VALUE, CONTENT_VALUE, CREATE_DATE_UTC, DELETE_OPERATION, DESCRIPTION_VALUE, FILENAME_VALUE, NAME_VALUE
Modifier and Type | Method and Description |
---|---|
Defect |
createDefect(String name)
Create a new Defect in this Project.
|
Defect |
createDefect(String name,
Map<String,Object> attributes)
Create a new Defect in this Project.
|
Environment |
createEnvironment(String name)
Creates a new Environment in the Project.
|
Environment |
createEnvironment(String name,
Map<String,Object> attributes)
Creates a new Environment in the Project with additional attributes.
|
Epic |
createEpic(String name)
Create a new Epic in this Project.
|
Epic |
createEpic(String name,
Map<String,Object> attributes)
Create a new Epic in this Project.
|
Goal |
createGoal(String name)
Create a new Goal in this Project.
|
Goal |
createGoal(String name,
Map<String,Object> attributes)
Create a new Goal in this Project.
|
Issue |
createIssue(String name)
Create a new Issue in this Project.
|
Issue |
createIssue(String name,
Map<String,Object> attributes)
Create a new Issue in this Project.
|
Iteration |
createIteration()
Create a new Iteration in the Project where the schedule is defined.
|
Iteration |
createIteration(Map<String,Object> attributes)
Create a new Iteration in the Project where the schedule is defined.
|
Iteration |
createIteration(String name,
DB.DateTime beginDate,
DB.DateTime endDate)
Create a new Iteration in the Project where the schedule is defined.
|
Iteration |
createIteration(String name,
DB.DateTime beginDate,
DB.DateTime endDate,
Map<String,Object> attributes)
Create a new Iteration in the Project where the schedule is defined.
|
RegressionPlan |
createRegressionPlan(String name)
Creates a new Regression Plan in the Project with additional attributes.
|
RegressionPlan |
createRegressionPlan(String name,
Map<String,Object> attributes)
Creates a new Regression Plan in the Project with additional attributes.
|
RegressionTest |
createRegressionTest(String name)
Creates a new Regression Test in the Project.
|
RegressionTest |
createRegressionTest(String name,
Map<String,Object> attributes)
Creates a new Regression Test in the Project.
|
Request |
createRequest(String name)
Create a new Request in this Project.
|
Request |
createRequest(String name,
Map<String,Object> attributes)
Create a new Request in this Project.
|
Retrospective |
createRetrospective(String name)
Create a new Retrospective in this Project.
|
Retrospective |
createRetrospective(String name,
Map<String,Object> attributes)
Create a new Retrospective in this Project.
|
Story |
createStory(String name)
Create a new Story in this Project.
|
Story |
createStory(String name,
Map<String,Object> attributes) |
Project |
createSubProject(String name,
DB.DateTime beginDate)
Create a sub project under this project with a name and begin date.
|
Project |
createSubProject(String name,
DB.DateTime beginDate,
Schedule schedule)
Create a sub project under this project with a name, begin date, and
optional schedule.
|
Project |
createSubProject(String name,
DB.DateTime beginDate,
Schedule schedule,
Map<String,Object> attributes) |
TestSet |
createTestSet(String name,
RegressionSuite suite)
Create a new Test Set in the project.
|
TestSet |
createTestSet(String name,
RegressionSuite suite,
Map<String,Object> attributes)
Create a new Test Set in the project.
|
Theme |
createTheme(String name)
Create a new Theme in this Project.
|
Theme |
createTheme(String name,
Map<String,Object> attributes)
Create a new Theme in this Project.
|
Collection<Member> |
getAssignedMembers() |
DB.DateTime |
getBeginDate() |
Collection<BuildProject> |
getBuildProjects() |
Collection<Project> |
getChildProjects(ProjectFilter filter)
A collection of sub-projects that belong to this project.
|
Collection<Project> |
getChildProjects(ProjectFilter filter,
boolean includeSubprojects)
A collection of sub-projects that belong to this project.
|
Collection<Defect> |
getDefects(DefectFilter filter)
filter Get Defects in this Project filtered as specified in the passed in
filter.
|
Collection<Defect> |
getDefects(DefectFilter filter,
boolean includeSubprojects)
Get Defects in this Project filtered as specified in the passed in
filter.
|
Collection<DefectTemplate> |
getDefectTemplates() |
Collection<Effort> |
getEffortRecords(EffortFilter filter)
A collection of Effort records that belong to this project.
|
Collection<Effort> |
getEffortRecords(EffortFilter filter,
boolean includeSubprojects)
A collection of Effort records that belong to this project.
|
DB.DateTime |
getEndDate() |
Collection<Epic> |
getEpics(EpicFilter filter)
Get Epics in this Project filtered as specified in the passed in filter.
|
Collection<Epic> |
getEpics(EpicFilter filter,
boolean includeSubprojects)
Get Epics in this Project filtered as specified in the passed in filter.
|
Collection<Goal> |
getGoals(GoalFilter filter)
Get Goals in this Project filtered as specified in the passed in filter.
|
Collection<Goal> |
getGoals(GoalFilter filter,
boolean includeSubprojects)
Get Goals in this Project filtered as specified in the passed in filter.
|
Collection<Issue> |
getIssues(IssueFilter filter)
Get Issues in this Project filtered as specified in the passed in filter.
|
Collection<Issue> |
getIssues(IssueFilter filter,
boolean includeSubprojects)
Get Issues in this Project filtered as specified in the passed in filter.
|
Collection<Iteration> |
getIterations(IterationFilter filter)
Get Iterations in this Project filtered as specified in the passed in
filter.
|
Collection<Iteration> |
getIterations(IterationFilter filter,
boolean includeSubprojects)
Get Iterations in this Project's schedule filtered as specified in the passed in
filter.
|
Member |
getOwner() |
Project |
getParentProject() |
Collection<PrimaryWorkitem> |
getPrimaryWorkitems(PrimaryWorkitemFilter filter)
Get PrimaryWorkitems in this Project filtered as specified in the passed
in filter.
|
Collection<PrimaryWorkitem> |
getPrimaryWorkitems(PrimaryWorkitemFilter filter,
boolean includeSubprojects)
Get PrimaryWorkitems in this Project filtered as specified in the passed
in filter.
|
Collection<RegressionPlan> |
getRegressionPlans(RegressionPlanFilter filter)
A collection of regression plans that belong to this project.
|
Collection<RegressionPlan> |
getRegressionPlans(RegressionPlanFilter filter,
boolean includeSubprojects)
A collection of regression plans that belong to this project.
|
Collection<Request> |
getRequests(RequestFilter filter)
Get Requests in this Project filtered as specified in the passed in
filter.
|
Collection<Request> |
getRequests(RequestFilter filter,
boolean includeSubprojects)
Get Requests in this Project filtered as specified in the passed in
filter.
|
Collection<Retrospective> |
getRetrospectives(RetrospectiveFilter filter)
Get Retrospective in this Project filtered as specified in the passed in
filter.
|
Collection<Retrospective> |
getRetrospectives(RetrospectiveFilter filter,
boolean includeSubprojects)
Get Retrospective in this Project filtered as specified in the passed in
filter.
|
Schedule |
getSchedule() |
Collection<SecondaryWorkitem> |
getSecondaryWorkitems(SecondaryWorkitemFilter filter)
Get SecondaryWorkitems in this Project filtered as specified in the
passed in filter.
|
Collection<SecondaryWorkitem> |
getSecondaryWorkitems(SecondaryWorkitemFilter filter,
boolean includeSubprojects)
Get SecondaryWorkitems in this Project filtered as specified in the
passed in filter.
|
IListValueProperty |
getStatus() |
Collection<Story> |
getStories(StoryFilter filter)
Get stories in this Project filtered as specified in the passed in
filter.
|
Collection<Story> |
getStories(StoryFilter filter,
boolean includeSubprojects)
Get stories in this Project filtered as specified in the passed in
filter.
|
Collection<StoryTemplate> |
getStoryTemplates() |
Collection<Task> |
getTasks(TaskFilter filter)
Get Tasks in this Project filtered as specified in the passed in filter.
|
Collection<Test> |
getTests(TestFilter filter)
Get Tests in this Project filtered as specified in the passed in filter.
|
Collection<TestSet> |
getTestSets(TestSetFilter filter)
Get test sets in this Project filtered as specified in the passed in filter.
|
Collection<TestSet> |
getTestSets(TestSetFilter filter,
boolean includeSubprojects)
Get test sets in this Project filtered as specified in the passed in filter.
|
TestSuite |
getTestSuite() |
Collection<Theme> |
getThemes(ThemeFilter filter)
Get Themes in this Project filtered as specified in the passed in filter.
|
Collection<Theme> |
getThemes(ThemeFilter filter,
boolean includeSubprojects)
Get Themes in this Project filtered as specified in the passed in filter.
|
Collection<Project> |
getThisAndAllChildProjects()
Returns a flattened collection of this project and all Projects that
descend from this project.
|
Double |
getTotalDetailEstimate(WorkitemFilter filter)
Count the total detail estimate for all workitems in this project
optionally filtered.
|
Double |
getTotalDetailEstimate(WorkitemFilter filter,
boolean includeChildProjects)
Count the total detail estimate for all workitems in this project
optionally filtered.
|
Double |
getTotalDone(WorkitemFilter filter)
Retrieves the total done for all workitems in this project optionally
filtered.
|
Double |
getTotalDone(WorkitemFilter filter,
boolean includeChildProjects)
Retrieves the total done for all workitems in this project optionally
filtered.
|
Double |
getTotalEstimate(PrimaryWorkitemFilter filter)
Retrieves the total estimate for all stories and defects in this project
optionally filtered.
|
Double |
getTotalEstimate(PrimaryWorkitemFilter filter,
boolean includeChildProjects)
Retrieves the total estimate for all stories and defects in this project
optionally filtered.
|
Double |
getTotalToDo(WorkitemFilter filter)
Retrieves the total to do for all workitems in this project optionally
filtered.
|
Double |
getTotalToDo(WorkitemFilter filter,
boolean includeChildProjects)
Retrieves the total to do for all workitems in this project optionally
filtered.
|
Collection<Epic> |
GetTrackedEpics()
Get tracked Epics that belong to current Project.
|
void |
setBeginDate(DB.DateTime beginDate) |
void |
setEndDate(DB.DateTime value) |
void |
setOwner(Member owner) |
void |
setParentProject(Project parentProject) |
void |
setSchedule(Schedule schedule) |
void |
setTestSuite(TestSuite testSuite) |
canClose, canDelete, canReactivate, close, createAttachment, createAttachment, createConversation, createConversation, createLink, createLink, createNote, createNote, delete, getAttachments, getCustomDropdown, getCustomField, getDescription, getLinks, getMentionedInExpressions, getName, getNotes, getURL, isActive, isClosed, reactivate, setDescription, setName
equals, get, getChangeComment, getChangeDate, getChangedBy, getCreateComment, getCreateDate, getCreatedBy, getID, getInstance, hashCode, save, save, toString
public Project getParentProject()
public void setParentProject(Project parentProject)
parentProject
- Parent project this project belongs to.public DB.DateTime getBeginDate()
public void setBeginDate(DB.DateTime beginDate)
beginDate
- Date this project begins.public DB.DateTime getEndDate()
public void setEndDate(DB.DateTime value)
value
- Date this project ends.public Schedule getSchedule()
public void setSchedule(Schedule schedule)
schedule
- Schedule that defines how this project's iterations are
spaced.public Member getOwner()
public void setOwner(Member owner)
owner
- The Member who owns this Project.public TestSuite getTestSuite()
public void setTestSuite(TestSuite testSuite)
testSuite
- TestSuite assigned to this Project.public IListValueProperty getStatus()
public Collection<BuildProject> getBuildProjects()
public Project createSubProject(String name, DB.DateTime beginDate, Schedule schedule)
name
- Name of the new project.beginDate
- Date the schedule will begin.schedule
- The new schedule. If null, the project will inherit the
parent project's schedule.public Project createSubProject(String name, DB.DateTime beginDate, Schedule schedule, Map<String,Object> attributes)
public Project createSubProject(String name, DB.DateTime beginDate)
name
- Name of the new project.beginDate
- Date the schedule will begin.public Epic createEpic(String name)
name
- The initial name of the Epic.public Epic createEpic(String name, Map<String,Object> attributes)
name
- The initial name of the Epic.attributes
- additional attributes for the Epic.public Story createStory(String name)
name
- The initial name of the Story.public Defect createDefect(String name)
name
- The initial name of the Defect.public Defect createDefect(String name, Map<String,Object> attributes)
name
- The initial name of the Defect.attributes
- additional attributes for defectpublic Theme createTheme(String name)
name
- The initial name of the Theme.public Theme createTheme(String name, Map<String,Object> attributes)
name
- The initial name of the Theme.attributes
- additional attributes for Theme.public Goal createGoal(String name)
name
- The initial name of the Goal.public Goal createGoal(String name, Map<String,Object> attributes)
name
- The initial name of the Goal.attributes
- additional attributes for the Goal.public Request createRequest(String name)
name
- The initial name of the Request.public Request createRequest(String name, Map<String,Object> attributes)
name
- The initial name of the Request.attributes
- additional attributes for the Request.public Issue createIssue(String name)
name
- The initial name of the Issue.public Issue createIssue(String name, Map<String,Object> attributes)
name
- The initial name of the Issue.attributes
- additional attributes for the Issue.public Retrospective createRetrospective(String name)
name
- The initial name of the Retrospective.public Retrospective createRetrospective(String name, Map<String,Object> attributes)
name
- The initial name of the Retrospective.attributes
- additional attributes for Retrospective.public Iteration createIteration()
public Iteration createIteration(Map<String,Object> attributes)
attributes
- additional attributes for the Iteration.public Iteration createIteration(String name, DB.DateTime beginDate, DB.DateTime endDate)
name
- The initial name of the Iteration.beginDate
- The begin date of the Iteration.endDate
- The end date of the Iteration.public Iteration createIteration(String name, DB.DateTime beginDate, DB.DateTime endDate, Map<String,Object> attributes)
name
- The initial name of the Iteration.beginDate
- The begin date of the Iteration.endDate
- The end date of the Iteration.attributes
- additional attributes for Iteration.public RegressionPlan createRegressionPlan(String name)
name
- Regression Plan title.public RegressionPlan createRegressionPlan(String name, Map<String,Object> attributes)
name
- Regression Plan title.attributes
- Additional attributes for initialization Regression Planpublic TestSet createTestSet(String name, RegressionSuite suite, Map<String,Object> attributes)
name
- Test Set namesuite
- Parent Regression suiteattributes
- Additional attributespublic TestSet createTestSet(String name, RegressionSuite suite)
name
- Test Set namesuite
- Parent Regression suitepublic Environment createEnvironment(String name)
name
- Environment title.public Environment createEnvironment(String name, Map<String,Object> attributes)
name
- Environment title.attributes
- Additional attributes for initialization Environment.public RegressionTest createRegressionTest(String name)
name
- Name of Regression Test.public RegressionTest createRegressionTest(String name, Map<String,Object> attributes)
name
- Name of Regression Test.attributes
- Additional attributes for initialization RegressionTest.public Collection<Member> getAssignedMembers()
public Collection<StoryTemplate> getStoryTemplates()
public Collection<DefectTemplate> getDefectTemplates()
public Collection<Project> getThisAndAllChildProjects()
public Collection<Project> getChildProjects(ProjectFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all child projects in the project are returned.public Collection<Project> getChildProjects(ProjectFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all child projects in the project are returned.includeSubprojects
- Specifies whether to include items from
sub-project or not. This only adds open subprojects.public Collection<Effort> getEffortRecords(EffortFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all effort records in the project are returned.public Collection<Effort> getEffortRecords(EffortFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all effort records in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open subprojects.public Collection<Epic> getEpics(EpicFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all epics in the project are returned.public Collection<Epic> getEpics(EpicFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all epics in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open subprojects.public Collection<Epic> GetTrackedEpics()
public Collection<Story> getStories(StoryFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all stories in the project are returned.public Collection<Story> getStories(StoryFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all stories in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open subprojects.public Collection<Defect> getDefects(DefectFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all defects in the project are returned.public Collection<Defect> getDefects(DefectFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all defects in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open subprojects.public Collection<TestSet> getTestSets(TestSetFilter filter)
filter
- Criteria to filter on. Project will be set automatically. If null, all test sets in the project are returned.public Collection<TestSet> getTestSets(TestSetFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically. If null, all test sets in the project are returned.includeSubprojects
- Specifies whether to include items from sub project or not. This only adds open subprojects.public Collection<PrimaryWorkitem> getPrimaryWorkitems(PrimaryWorkitemFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all stories and defects in the project are
returned.public Collection<PrimaryWorkitem> getPrimaryWorkitems(PrimaryWorkitemFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all stories and defects in the project are
returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open subprojects.public Collection<Iteration> getIterations(IterationFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all iterations in the project are returned.public Collection<Iteration> getIterations(IterationFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Schedule will be set automatically.
If null, all iterations in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open subprojects.public Collection<Theme> getThemes(ThemeFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all themes in the project are returned.public Collection<Theme> getThemes(ThemeFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all themes in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open subprojects.public Collection<SecondaryWorkitem> getSecondaryWorkitems(SecondaryWorkitemFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all tasks and tests in the project are returned.public Collection<SecondaryWorkitem> getSecondaryWorkitems(SecondaryWorkitemFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all tasks and tests in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open subprojects.public Collection<Task> getTasks(TaskFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all tasks in the project are returned.public Collection<Test> getTests(TestFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all tests in the project are returned.public Collection<Request> getRequests(RequestFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all Requests in the project are returned.public Collection<Request> getRequests(RequestFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all Requests in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open sub projects.public Collection<Goal> getGoals(GoalFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all Goals in the project are returned.public Collection<Goal> getGoals(GoalFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all Goals in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open sub projects.public Collection<Retrospective> getRetrospectives(RetrospectiveFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all Retrospective in the project are returned.public Collection<Retrospective> getRetrospectives(RetrospectiveFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all Retrospective in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open sub projects.public Collection<Issue> getIssues(IssueFilter filter)
filter
- Criteria to filter on. Project will be set automatically.
If null, all Issues in the project are returned.public Collection<Issue> getIssues(IssueFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project will be set automatically.
If null, all Issues in the project are returned.includeSubprojects
- Specifies whether to include items from sub
project or not. This only adds open sub projects.public Collection<RegressionPlan> getRegressionPlans(RegressionPlanFilter filter, boolean includeSubprojects)
filter
- Criteria to filter on. Project(s) will be set automatically.
If null, all related regression items in the project are returned.includeSubprojects
- Specifies whether to include items from sub-project or not.
This only adds open subprojects.public Collection<RegressionPlan> getRegressionPlans(RegressionPlanFilter filter)
filter
- Criteria to filter on. Project(s) will be set automatically.
If null, all related regression items in the project are returned.public Double getTotalEstimate(PrimaryWorkitemFilter filter, boolean includeChildProjects)
filter
- Criteria to filter stories and defects on.includeChildProjects
- If true, include open sub projects, otherwise
only include this project.public Double getTotalEstimate(PrimaryWorkitemFilter filter)
filter
- Criteria to filter stories and defects on.public Double getTotalDetailEstimate(WorkitemFilter filter, boolean includeChildProjects)
filter
- Criteria to filter workitems on.includeChildProjects
- If true, include open sub projects, otherwise
only include this project.public Double getTotalDetailEstimate(WorkitemFilter filter)
filter
- Criteria to filter workitems on.public Double getTotalToDo(WorkitemFilter filter, boolean includeChildProjects)
filter
- Criteria to filter workitems on.includeChildProjects
- If true, include open sub projects, otherwise
only include this project.public Double getTotalToDo(WorkitemFilter filter)
filter
- Criteria to filter workitems on.public Double getTotalDone(WorkitemFilter filter, boolean includeChildProjects)
filter
- Criteria to filter workitems on.includeChildProjects
- If true, include open sub projects, otherwise
only include this project.public Double getTotalDone(WorkitemFilter filter)
filter
- Criteria to filter workitems on.Copyright © 2013 Version One, Inc.. All rights reserved.