-
Notifications
You must be signed in to change notification settings - Fork 2
Milestones
Muriël Nooder edited this page Dec 9, 2021
·
1 revision
A milestone functions as a checkpoint on your project timeline. All test runs are linked to a milestone.
In order to work with milestones, make sure you have created a project first.
To get a list of milestones, use the list method:
Project project = client.projects().get(1);
ArrayList<Milestone> milestones = client.milestones(project).list();This will get a paginated list of milestones for project ID 1.
The client provides a convenient findOrCreate method. This will try to find a milestone matching the given name first - otherwise, it will be created.
Project project = client.projects().get(1);
Milestone milestone = client.milestones(project).findOrCreate("A Milestone"));This will look for a milestone named "A Milestone"; when it's present, it will return this milestone as an object. Otherwise, it will create a new milestone using that name and return it as an object.