@PublicApi
public interface ResolutionManager
Resolution
s.Modifier and Type | Method and Description |
---|---|
Resolution |
createResolution(String name,
String description)
Adds a new resolution.
|
void |
editResolution(Resolution resolution,
String name,
String description)
Edits an existing resolution.
|
Resolution |
getDefaultResolution()
Returns the default resolution.
|
Resolution |
getResolution(String id)
Returns a resolution with the specified id.
|
Resolution |
getResolutionByName(String name)
Returns the resolution with the specified name.
|
List<Resolution> |
getResolutions()
Return all resolutions.
|
void |
moveResolutionDown(String id)
Move the resolution down in the order.
|
void |
moveResolutionUp(String id)
Move the resolution up in the order.
|
void |
removeResolution(String resolutionId,
String newResolutionId)
Removes a resolution with the specified id.
|
void |
setDefaultResolution(String id)
Sets the default resolution.
|
Resolution createResolution(String name, String description)
name
- resolution name. Cannot be null or blank.description
- the resolution description. Can be null or blank.Resolution
.void editResolution(Resolution resolution, String name, String description)
resolution
- resolution to edit.name
- the new name.description
- the new descriptionList<Resolution> getResolutions()
moveResolutionDown(String)
or moveResolutionUp(String)
.Resolution
svoid removeResolution(String resolutionId, String newResolutionId)
resolutionId
- resolution to remove.newResolutionId
- new resolution for issues which have the resolution which has been removed. Cannot be null.Resolution getResolutionByName(String name)
name
- the name of the resolution.Resolution
with the specified name.Resolution getResolution(String id)
id
- resolution id.Resolution
with the specified id or null if no resolution whith this id exists.void moveResolutionUp(String id)
id
- id of the resolution.void moveResolutionDown(String id)
id
- id of the resolution.void setDefaultResolution(String id)
You can pass null to clear the default.
id
- resolution id or null.Resolution getDefaultResolution()
Will return null if no default is set.
Copyright © 2002-2015 Atlassian. All Rights Reserved.