public class FogbugzManager extends Object
| Constructor and Description |
|---|
FogbugzManager(String url,
String token,
String featureBranchFieldname,
String originalBranchFieldname,
String targetBranchFieldname,
String approvedRevisionFieldname,
String ciProjectFieldName,
int mergekeeperUserId,
int gatekeeperUserId)
Constructor of FogbugzManager.
|
| Modifier and Type | Method and Description |
|---|---|
FogbugzCase |
assignToGatekeepers(FogbugzCase fbCase)
Assign the given case to gatekeepers (uses GatekeeperUserID from global settings)
|
FogbugzCase |
assignToMergekeepers(FogbugzCase fbCase)
Assign case to mergekeepers user id.
|
boolean |
createMilestone(FogbugzMilestone milestone)
Creates new Milestone in Fogbugz.
|
boolean |
createMilestoneIfNotExists(String milestoneName) |
FogbugzCase |
getCaseById(int id)
Retrieves a case using the Fogbugz API by caseId.
|
List<FogbugzEvent> |
getEventsForCase(int id)
Retrieves all events for a certain case.
|
FogbugzUser |
getFogbugzUser(int ix) |
FogbugzEvent |
getLastAssignedToGatekeepersEvent(int caseId)
Loop through all FogbugzEvent for given case id, and return last (in time) with assignment to gatekeepers.
|
List<FogbugzMilestone> |
getMilestones()
Retrieves all milestones and returns them in a nice List of FogbugzMilestone objects.
|
boolean |
saveCase(FogbugzCase fbCase)
Additional save method that does not propagate a comment.
|
boolean |
saveCase(FogbugzCase fbCase,
String comment)
Saves a case to fogbugz using its API.
|
List<FogbugzCase> |
searchForCases(String query)
Retrieves cases using the Fogbugz API by a query
|
public FogbugzManager(String url, String token, @Nullable String featureBranchFieldname, @Nullable String originalBranchFieldname, @Nullable String targetBranchFieldname, @Nullable String approvedRevisionFieldname, @Nullable String ciProjectFieldName, int mergekeeperUserId, int gatekeeperUserId)
public FogbugzCase getCaseById(int id) throws InvalidResponseException, NoSuchCaseException
id - the id of the case to fetch.InvalidResponseExceptionNoSuchCaseExceptionpublic List<FogbugzCase> searchForCases(String query) throws InvalidResponseException, NoSuchCaseException
query - fogbugz search queryInvalidResponseExceptionNoSuchCaseExceptionpublic List<FogbugzEvent> getEventsForCase(int id)
id - Case id to fetch events frompublic FogbugzEvent getLastAssignedToGatekeepersEvent(int caseId)
caseId - public boolean saveCase(FogbugzCase fbCase, String comment)
fbCase - The case to save.comment - A message to pass for this edit.public boolean saveCase(FogbugzCase fbCase)
fbCase - The case to save.public FogbugzCase assignToMergekeepers(FogbugzCase fbCase)
fbCase - the case to set assignedTo on.public FogbugzCase assignToGatekeepers(FogbugzCase fbCase)
fbCase - The case to edit.public FogbugzUser getFogbugzUser(int ix)
public List<FogbugzMilestone> getMilestones()
public boolean createMilestone(FogbugzMilestone milestone)
milestone - to edit/createpublic boolean createMilestoneIfNotExists(String milestoneName)
Copyright © 2014. All rights reserved.