com.atlassian.jira.rpc.soap.service
Interface IssueService

All Known Implementing Classes:
IssueServiceImpl

public interface IssueService


Method Summary
 boolean addAttachmentsToIssue(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, java.lang.String[] fileNames, byte[][] attachments)
           
 void addComment(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, RemoteComment remoteComment)
           
 RemoteWorklog addWorklogAndAutoAdjustRemainingEstimate(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, RemoteWorklog remoteWorklog)
           
 RemoteWorklog addWorklogAndRetainRemainingEstimate(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, RemoteWorklog remoteWorklog)
           
 RemoteWorklog addWorklogWithNewRemainingEstimate(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, RemoteWorklog remoteWorklog, java.lang.String newRemainingEstimate)
           
 RemoteIssue createIssueWithSecurityLevel(com.atlassian.crowd.embedded.api.User user, java.lang.String parentIssueKey, RemoteIssue rIssue, java.lang.Long securityLevelId)
           
 void deleteIssue(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
           
 void deleteWorklogAndAutoAdjustRemainingEstimate(com.atlassian.crowd.embedded.api.User user, java.lang.String remoteWorklogId)
           
 void deleteWorklogAndRetainRemainingEstimate(com.atlassian.crowd.embedded.api.User user, java.lang.String remoteWorklogId)
           
 void deleteWorklogWithNewRemainingEstimate(com.atlassian.crowd.embedded.api.User user, java.lang.String remoteWorklogId, java.lang.String newRemainingEstimate)
           
 RemoteComment editComment(com.atlassian.crowd.embedded.api.User user, RemoteComment remoteComment)
           
 RemoteAttachment[] getAttachmentsFromIssue(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
           
 RemoteNamedObject[] getAvailableActions(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
           
 RemoteComment getComment(com.atlassian.crowd.embedded.api.User user, java.lang.Long commentId)
           
 RemoteComment[] getComments(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
           
 RemoteField[] getFieldsForAction(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, java.lang.String actionIdString)
           
 RemoteField[] getFieldsForCreate(com.atlassian.crowd.embedded.api.User user, java.lang.String projectKey, java.lang.Long issueTypeId)
           
 RemoteField[] getFieldsForEdit(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
           
 RemoteIssue getIssue(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
           
 RemoteIssue getIssueById(com.atlassian.crowd.embedded.api.User user, java.lang.String issueId)
           
 java.util.Date getResolutionDateById(com.atlassian.crowd.embedded.api.User user, java.lang.Long issueId)
          Returns the resolution date given an issue id
 java.util.Date getResolutionDateByKey(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
          Returns the resolution date given an issue key
 RemoteSecurityLevel getSecurityLevel(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
          Returns the current security level for given issue.
 RemoteWorklog[] getWorklogs(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
           
 boolean hasPermissionToCreateWorklog(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey)
           
 boolean hasPermissionToDeleteWorklog(com.atlassian.crowd.embedded.api.User user, java.lang.String worklogId)
           
 boolean hasPermissionToEditComment(com.atlassian.crowd.embedded.api.User user, RemoteComment remoteComment)
           
 boolean hasPermissionToUpdateWorklog(com.atlassian.crowd.embedded.api.User user, java.lang.String worklogId)
           
 RemoteIssue progressWorkflowAction(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, java.lang.String actionIdString, RemoteFieldValue[] actionParams)
           
 RemoteIssue updateIssue(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, java.util.Map actionParams)
           
 RemoteIssue updateIssue(com.atlassian.crowd.embedded.api.User user, java.lang.String issueKey, RemoteFieldValue[] actionParams)
           
 void updateWorklogAndAutoAdjustRemainingEstimate(com.atlassian.crowd.embedded.api.User user, RemoteWorklog remoteWorklog)
           
 void updateWorklogAndRetainRemainingEstimate(com.atlassian.crowd.embedded.api.User user, RemoteWorklog remoteWorklog)
           
 void updateWorklogWithNewRemainingEstimate(com.atlassian.crowd.embedded.api.User user, RemoteWorklog remoteWorklog, java.lang.String newRemainingEstimate)
           
 

Method Detail

getIssue

RemoteIssue getIssue(com.atlassian.crowd.embedded.api.User user,
                     java.lang.String issueKey)
                     throws RemoteException,
                            RemotePermissionException
Throws:
RemoteException
RemotePermissionException

createIssueWithSecurityLevel

RemoteIssue createIssueWithSecurityLevel(com.atlassian.crowd.embedded.api.User user,
                                         java.lang.String parentIssueKey,
                                         RemoteIssue rIssue,
                                         java.lang.Long securityLevelId)
                                         throws RemotePermissionException,
                                                RemoteValidationException,
                                                RemoteException
Throws:
RemotePermissionException
RemoteValidationException
RemoteException

getComments

RemoteComment[] getComments(com.atlassian.crowd.embedded.api.User user,
                            java.lang.String issueKey)
                            throws RemoteException,
                                   RemotePermissionException
Throws:
RemoteException
RemotePermissionException

addAttachmentsToIssue

boolean addAttachmentsToIssue(com.atlassian.crowd.embedded.api.User user,
                              java.lang.String issueKey,
                              java.lang.String[] fileNames,
                              byte[][] attachments)
                              throws RemoteException,
                                     RemotePermissionException
Throws:
RemoteException
RemotePermissionException

getAttachmentsFromIssue

RemoteAttachment[] getAttachmentsFromIssue(com.atlassian.crowd.embedded.api.User user,
                                           java.lang.String issueKey)
                                           throws RemoteException
Throws:
RemoteException

deleteIssue

void deleteIssue(com.atlassian.crowd.embedded.api.User user,
                 java.lang.String issueKey)
                 throws RemoteException,
                        RemotePermissionException
Throws:
RemoteException
RemotePermissionException

addComment

void addComment(com.atlassian.crowd.embedded.api.User user,
                java.lang.String issueKey,
                RemoteComment remoteComment)
                throws RemoteException,
                       RemotePermissionException
Throws:
RemoteException
RemotePermissionException

hasPermissionToEditComment

boolean hasPermissionToEditComment(com.atlassian.crowd.embedded.api.User user,
                                   RemoteComment remoteComment)
                                   throws RemoteException
Throws:
RemoteException

editComment

RemoteComment editComment(com.atlassian.crowd.embedded.api.User user,
                          RemoteComment remoteComment)
                          throws RemoteException
Throws:
RemoteException

getComment

RemoteComment getComment(com.atlassian.crowd.embedded.api.User user,
                         java.lang.Long commentId)
                         throws RemoteException
Throws:
RemoteException

updateIssue

RemoteIssue updateIssue(com.atlassian.crowd.embedded.api.User user,
                        java.lang.String issueKey,
                        java.util.Map actionParams)
                        throws RemoteException
Throws:
RemoteException

getFieldsForCreate

RemoteField[] getFieldsForCreate(com.atlassian.crowd.embedded.api.User user,
                                 java.lang.String projectKey,
                                 java.lang.Long issueTypeId)
                                 throws RemoteException
Throws:
RemoteException

getFieldsForEdit

RemoteField[] getFieldsForEdit(com.atlassian.crowd.embedded.api.User user,
                               java.lang.String issueKey)
                               throws RemoteException
Throws:
RemoteException

updateIssue

RemoteIssue updateIssue(com.atlassian.crowd.embedded.api.User user,
                        java.lang.String issueKey,
                        RemoteFieldValue[] actionParams)
                        throws RemoteException
Throws:
RemoteException

getAvailableActions

RemoteNamedObject[] getAvailableActions(com.atlassian.crowd.embedded.api.User user,
                                        java.lang.String issueKey)
                                        throws RemoteException
Throws:
RemoteException

getFieldsForAction

RemoteField[] getFieldsForAction(com.atlassian.crowd.embedded.api.User user,
                                 java.lang.String issueKey,
                                 java.lang.String actionIdString)
                                 throws RemoteException
Throws:
RemoteException

progressWorkflowAction

RemoteIssue progressWorkflowAction(com.atlassian.crowd.embedded.api.User user,
                                   java.lang.String issueKey,
                                   java.lang.String actionIdString,
                                   RemoteFieldValue[] actionParams)
                                   throws RemoteException
Throws:
RemoteException

getIssueById

RemoteIssue getIssueById(com.atlassian.crowd.embedded.api.User user,
                         java.lang.String issueId)
                         throws RemoteException,
                                RemotePermissionException
Throws:
RemoteException
RemotePermissionException

addWorklogWithNewRemainingEstimate

RemoteWorklog addWorklogWithNewRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                                 java.lang.String issueKey,
                                                 RemoteWorklog remoteWorklog,
                                                 java.lang.String newRemainingEstimate)
                                                 throws RemoteException,
                                                        RemotePermissionException,
                                                        RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

addWorklogAndAutoAdjustRemainingEstimate

RemoteWorklog addWorklogAndAutoAdjustRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                                       java.lang.String issueKey,
                                                       RemoteWorklog remoteWorklog)
                                                       throws RemoteException,
                                                              RemotePermissionException,
                                                              RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

addWorklogAndRetainRemainingEstimate

RemoteWorklog addWorklogAndRetainRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                                   java.lang.String issueKey,
                                                   RemoteWorklog remoteWorklog)
                                                   throws RemoteException,
                                                          RemotePermissionException,
                                                          RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

deleteWorklogWithNewRemainingEstimate

void deleteWorklogWithNewRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                           java.lang.String remoteWorklogId,
                                           java.lang.String newRemainingEstimate)
                                           throws RemoteException,
                                                  RemotePermissionException,
                                                  RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

deleteWorklogAndAutoAdjustRemainingEstimate

void deleteWorklogAndAutoAdjustRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                                 java.lang.String remoteWorklogId)
                                                 throws RemoteException,
                                                        RemotePermissionException,
                                                        RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

deleteWorklogAndRetainRemainingEstimate

void deleteWorklogAndRetainRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                             java.lang.String remoteWorklogId)
                                             throws RemoteException,
                                                    RemotePermissionException,
                                                    RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

updateWorklogWithNewRemainingEstimate

void updateWorklogWithNewRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                           RemoteWorklog remoteWorklog,
                                           java.lang.String newRemainingEstimate)
                                           throws RemoteException,
                                                  RemotePermissionException,
                                                  RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

updateWorklogAndAutoAdjustRemainingEstimate

void updateWorklogAndAutoAdjustRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                                 RemoteWorklog remoteWorklog)
                                                 throws RemoteException,
                                                        RemotePermissionException,
                                                        RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

updateWorklogAndRetainRemainingEstimate

void updateWorklogAndRetainRemainingEstimate(com.atlassian.crowd.embedded.api.User user,
                                             RemoteWorklog remoteWorklog)
                                             throws RemoteException,
                                                    RemotePermissionException,
                                                    RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

getWorklogs

RemoteWorklog[] getWorklogs(com.atlassian.crowd.embedded.api.User user,
                            java.lang.String issueKey)
                            throws RemoteException,
                                   RemotePermissionException,
                                   RemoteValidationException
Throws:
RemoteException
RemotePermissionException
RemoteValidationException

hasPermissionToCreateWorklog

boolean hasPermissionToCreateWorklog(com.atlassian.crowd.embedded.api.User user,
                                     java.lang.String issueKey)
                                     throws RemoteException,
                                            RemoteValidationException
Throws:
RemoteException
RemoteValidationException

hasPermissionToDeleteWorklog

boolean hasPermissionToDeleteWorklog(com.atlassian.crowd.embedded.api.User user,
                                     java.lang.String worklogId)
                                     throws RemoteException,
                                            RemoteValidationException
Throws:
RemoteException
RemoteValidationException

hasPermissionToUpdateWorklog

boolean hasPermissionToUpdateWorklog(com.atlassian.crowd.embedded.api.User user,
                                     java.lang.String worklogId)
                                     throws RemoteException,
                                            RemoteValidationException
Throws:
RemoteException
RemoteValidationException

getSecurityLevel

RemoteSecurityLevel getSecurityLevel(com.atlassian.crowd.embedded.api.User user,
                                     java.lang.String issueKey)
                                     throws RemoteException,
                                            RemotePermissionException
Returns the current security level for given issue.

If the user has permission to see the issue, but not the security level, null is returned.

Parameters:
user - user performing this operation
issueKey - the issue key
Returns:
issue security level or null
Throws:
RemoteException - If there was some problem preventing the operation from working.
RemotePermissionException - If the issue key is invalid or the user is not permitted to see this issue.
Since:
v3.13

getResolutionDateByKey

java.util.Date getResolutionDateByKey(com.atlassian.crowd.embedded.api.User user,
                                      java.lang.String issueKey)
                                      throws RemoteException
Returns the resolution date given an issue key

Parameters:
user - The user making the request
issueKey - the key of the issue being retrieved
Returns:
the resolution date or null of the issue
Throws:
RemoteException - If the user doesn't have permission to browse the issue or the issue doesn't exist
Since:
4.0

getResolutionDateById

java.util.Date getResolutionDateById(com.atlassian.crowd.embedded.api.User user,
                                     java.lang.Long issueId)
                                     throws RemoteException
Returns the resolution date given an issue id

Parameters:
user - The user making the request
issueId - the id of the issue being retrieved
Returns:
the resolution date or null of the issue
Throws:
RemoteException - If the user doesn't have permission to browse the issue or the issue doesn't exist
Since:
4.0


Copyright © 2004-2011 Atlassian. All Rights Reserved.