Package | Description |
---|---|
com.atlassian.servicedesk.api.approval |
Modifier and Type | Method and Description |
---|---|
Approval |
ApprovalService.answerApproval(com.atlassian.jira.user.ApplicationUser user,
Approval approval,
ApprovalDecisionType decision)
Answer to an approval of a given
approvalId
The answer could be approve or decline
Required permissions:
- User is an approver of the approval
- User can view the request that the approval belongs to |
Approval |
ApprovalService.getApprovalById(com.atlassian.jira.user.ApplicationUser user,
int approvalId)
Return an
Approval for a given approvalId or AnError if:
- user does not have permission to view issue in customer portal context
- Approval was not found for the given approvalId |
Modifier and Type | Method and Description |
---|---|
PagedResponse<Approval> |
ApprovalService.getApprovals(com.atlassian.jira.user.ApplicationUser user,
ApprovalQuery approvalQuery)
Retrieve a page of
Approval of a particular ApprovalQuery |
Modifier and Type | Method and Description |
---|---|
Approval |
ApprovalService.answerApproval(com.atlassian.jira.user.ApplicationUser user,
Approval approval,
ApprovalDecisionType decision)
Answer to an approval of a given
approvalId
The answer could be approve or decline
Required permissions:
- User is an approver of the approval
- User can view the request that the approval belongs to |
Boolean |
ApprovalService.canAnswerApproval(com.atlassian.jira.user.ApplicationUser user,
Approval approval)
Return true if
user can answer this approval or false if:
- user is not approver of the passed in approval
- the approval is not pending anymore
- the issue that the approval belong to does not have the same current status as the approval configured
- user already made decision |
List<Approver> |
ApprovalService.getApprovers(com.atlassian.jira.user.ApplicationUser user,
Approval approval)
Return a list of
Approver for a given approval |
Copyright © 2019 Atlassian. All rights reserved.