com.atlassian.greenhopper.web.rapid.issue
Class IssueResource

java.lang.Object
  extended by com.atlassian.greenhopper.web.AbstractResource
      extended by com.atlassian.greenhopper.web.rapid.issue.IssueResource

public class IssueResource
extends AbstractResource

Provides issue related rest resources


Nested Class Summary
static class IssueResource.MatchesBoardResponse
           
static class IssueResource.SetVersionRequest
           
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
HTTP_HEADER_GREENHOPPER_GADGET, log
 
Constructor Summary
IssueResource(IssueEntryFactory issueEntryFactory, TransitionEntryFactory transitionEntryFactory, IssueHelper issueHelper, RapidViewService rapidViewService, PoolService poolService, EstimateStatisticService estimateStatisticService, SprintIssueService sprintIssueService, TrackingStatisticService trackingStatisticService, VersionService versionService, com.atlassian.jira.bc.issue.IssueService jiraIssueService, com.atlassian.jira.bc.project.version.VersionService jiraVersionService, RapidViewQueryService rapidViewQueryService, SearchService searchService)
           
 
Method Summary
 javax.ws.rs.core.Response areSubtasksResolved(java.lang.Long issueId, java.lang.Long rapidViewId)
           
 javax.ws.rs.core.Response clearFixVersion(IssueResource.SetVersionRequest setVersionRequest)
           
 javax.ws.rs.core.Response doIssuesMatchBoard(java.util.Set<java.lang.String> issueIdsOrKeys, java.lang.Long rapidViewId)
           
 javax.ws.rs.core.Response getEditData(javax.ws.rs.core.Request request, java.lang.String issueIdOrKey, java.lang.Long rapidViewId)
          Get the edit values for for a single issue.
 javax.ws.rs.core.Response getPageData(javax.ws.rs.core.Request request, java.lang.String issueIdOrKey, java.lang.Long rapidViewId, boolean loadSubtasks)
          Get the details for a single issue.
 javax.ws.rs.core.Response getTransitions(java.lang.Long issueId)
          Get the list of possible transitions for the given issue.
 javax.ws.rs.core.Response setFixVersion(IssueResource.SetVersionRequest setVersionRequest)
          Set a fix version for each provided issues.
 javax.ws.rs.core.Response updateField(com.atlassian.greenhopper.web.rapid.issue.IssueResource.UpdateFieldRequest updateFieldRequest)
          Stores a single field value
 
Methods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, createErrorResponse, createFromServiceOutcome, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response, wireAuthenticationContext, wireI18nFactoryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueResource

public IssueResource(IssueEntryFactory issueEntryFactory,
                     TransitionEntryFactory transitionEntryFactory,
                     IssueHelper issueHelper,
                     RapidViewService rapidViewService,
                     PoolService poolService,
                     EstimateStatisticService estimateStatisticService,
                     SprintIssueService sprintIssueService,
                     TrackingStatisticService trackingStatisticService,
                     VersionService versionService,
                     com.atlassian.jira.bc.issue.IssueService jiraIssueService,
                     com.atlassian.jira.bc.project.version.VersionService jiraVersionService,
                     RapidViewQueryService rapidViewQueryService,
                     SearchService searchService)
Method Detail

getPageData

public javax.ws.rs.core.Response getPageData(@Context
                                             javax.ws.rs.core.Request request,
                                             java.lang.String issueIdOrKey,
                                             java.lang.Long rapidViewId,
                                             boolean loadSubtasks)
Get the details for a single issue.

Parameters:
issueIdOrKey - the issue id or key to query

areSubtasksResolved

public javax.ws.rs.core.Response areSubtasksResolved(java.lang.Long issueId,
                                                     java.lang.Long rapidViewId)

getTransitions

public javax.ws.rs.core.Response getTransitions(java.lang.Long issueId)
Get the list of possible transitions for the given issue.

Parameters:
issueId - the issue id to query

getEditData

public javax.ws.rs.core.Response getEditData(@Context
                                             javax.ws.rs.core.Request request,
                                             java.lang.String issueIdOrKey,
                                             java.lang.Long rapidViewId)
Get the edit values for for a single issue.

Parameters:
issueIdOrKey - the issue id or key to query

updateField

public javax.ws.rs.core.Response updateField(com.atlassian.greenhopper.web.rapid.issue.IssueResource.UpdateFieldRequest updateFieldRequest)
Stores a single field value


setFixVersion

public javax.ws.rs.core.Response setFixVersion(IssueResource.SetVersionRequest setVersionRequest)
Set a fix version for each provided issues. We can't use the JIRA REST API because we need to be able to edit the fix version field regardless of the edit screen configuration.


clearFixVersion

public javax.ws.rs.core.Response clearFixVersion(IssueResource.SetVersionRequest setVersionRequest)

doIssuesMatchBoard

public javax.ws.rs.core.Response doIssuesMatchBoard(java.util.Set<java.lang.String> issueIdsOrKeys,
                                                    java.lang.Long rapidViewId)


Copyright © 2007-2014 Atlassian. All Rights Reserved.