Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using ticket approval API on behalf of the approvers

Deleted user January 16, 2024

Hi team,

As of now, we are developing a service with the below simplified functionalities:

1. Allow users to create a ticket on a Jira Service Desk board via our internal GUI

2. Allow the approvers to approve the created ticket via our internal GUI as well

 

We use a headless account to interact with Jira in our backend. The issue was: when we hit the approval API (API link ), it returns a 403 error, which was expected due to that the headless account executed it, not the actual assigned approver.

I have read some threads about how to resolve it using ACT_AS_USER scope and Jira connect. But I am confused on how should I implement that. Given that our current implementation is using direct REST API between our backend server and the Jira API.

 

Need your help to suggest the most efficient way to resolve this issue. Please let me know if you need more information.

 

Thank you :)

1 answer

0 votes
Eugenio Onofre
Community Champion
January 17, 2024

Hi @[deleted]

Unfortunately there is no way to do it without using the ACT_AS_USER and, to do so, you need Jira Connect. More details can be found below:

https://developer.atlassian.com/cloud/confluence/user-impersonation-for-connect-apps/

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,
Eugenio

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events