The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Eugenio Onofre
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events