Class ProjectNotificationSchemeResource
java.lang.Object
com.atlassian.jira.rest.v2.notification.ProjectNotificationSchemeResource
@Path("project/{projectKeyOrId}/notificationscheme")
@Produces("application/json")
public class ProjectNotificationSchemeResource
extends Object
Resource for associating notification schemes and projects.
- Since:
- 6.5
-
Constructor Summary
ConstructorsConstructorDescriptionProjectNotificationSchemeResource
(ResponseFactory responseFactory, JiraAuthenticationContext jiraAuthenticationContext, NotificationSchemeService notificationSchemeService, NotificationSchemeBeanFactory notificationSchemeBeanFactory) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
getNotificationScheme
(String projectKeyOrId, String expand) Gets a notification scheme associated with the project.
-
Constructor Details
-
ProjectNotificationSchemeResource
@Inject public ProjectNotificationSchemeResource(ResponseFactory responseFactory, JiraAuthenticationContext jiraAuthenticationContext, NotificationSchemeService notificationSchemeService, NotificationSchemeBeanFactory notificationSchemeBeanFactory)
-
-
Method Details
-
getNotificationScheme
@GET public javax.ws.rs.core.Response getNotificationScheme(@PathParam("projectKeyOrId") String projectKeyOrId, @QueryParam("expand") String expand) Gets a notification scheme associated with the project. Follow the documentation of /notificationscheme/{id} resource for all details about returned value.- Parameters:
projectKeyOrId
- key or id of the projectexpand
- : optional information to be expanded in the response: group, user, projectRole or field- Returns:
- The associated notification scheme if successful, appropriate error otherwise.
-