Package com.testmonitor.actions
Class Milestones
java.lang.Object
com.testmonitor.actions.Milestones
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a milestone.Create a milestone using the provided name.findOrCreate(String query) Find a milestone using the provided query or create a new one.list()Search through milestones.Update a milestone.
-
Constructor Details
-
Milestones
- Parameters:
connector- The TestMonitor connectorproject- The TestMonitor project
-
-
Method Details
-
list
- Returns:
- A list of milestones
- Throws:
IOExceptionURISyntaxException
-
list
- Parameters:
page- Page number- Returns:
- A list of milestones
- Throws:
IOExceptionURISyntaxException
-
list
public ArrayList<Milestone> list(Integer page, Integer limit) throws IOException, URISyntaxException - Parameters:
page- Page numberlimit- Paging limit- Returns:
- A list of milestones
- Throws:
IOExceptionURISyntaxException
-
get
- Parameters:
id- The milestone ID- Returns:
- The milestone matching the ID
- Throws:
IOException
-
search
Search through milestones.- Parameters:
query- The search query- Returns:
- A list of search results
- Throws:
IOExceptionURISyntaxException
-
create
Create a milestone using the provided name. The end date will be set for next month.- Parameters:
name- The name of the milestone- Returns:
- The created milestone
- Throws:
IOException
-
create
Create a milestone.- Parameters:
milestone- The new milestone- Returns:
- The created milestone
- Throws:
IOException
-
findOrCreate
Find a milestone using the provided query or create a new one.- Parameters:
query- The search query- Returns:
- A milestone matching the query or a new milestone.
- Throws:
IOExceptionURISyntaxException
-
update
Update a milestone.- Parameters:
milestone- The milestone you want to update- Returns:
- The updated milestone
- Throws:
IOException
-