We have established REST API connectivity with JIRA service Desk with oauth2 token using service account credentials/service account login.
We are able to read all requests calling API end point : “https://jadeboomi.atlassian.net/rest/servicedeskapi/request”
Is there any way to approve a request from API end point, using service account oauth2 token? Or JIRA only allows approvals from user access credentials?
Hello @Harshada Pawar ,
The later portion you noted is correct "JIRA only allows approvals from user access credentials" so Yes the user that is the approver would need to issue approval API via the POST to the endpoint "Answer Approval" with that accounts credentials and the service account would only be able to issue an approval as the service account.
POST /rest/servicedeskapi/request/{issueIdOrKey}/approval/{approvalId}
This is also true for all other API endpoints as well, the credentials used to issue a call are the same credentials used to see and edit the content on the front end, if the account does not have permission to see or edit details in the Jira front end they will not have access via the API on the back end.
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.