Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA API error: "Session auth token does not include expected resource servers in audience server"

Hi,

I am developing integration with my app via JIRA / atlassian API. I have correct connection with app. "Test connection", "export clients", "get project list" are working properly.

When I tried to create a new "ticket" for project key "PI" (Project ITSM), I got a response with an error:
"stdClass Object (
[error] => Session auth token does not include expected resource servers in audience server. Token was issued for: [https://maciejsza.atlassian.net/])"

request:
"{\"requestFieldValues\":{\"summary\":\"Test Subject\",\"description\":\"dfsdfsdf sd fsdfs d fsdfsdf sd fsdf \"},\"requestTypeId\":\"4\",\"serviceDeskId\":\"2\"}"request

For authorization and connection I using these endpoints:
https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-post
https://developer.atlassian.com/cloud/confluence/user-impersonation-for-connect-apps/

I will be grateful for your help.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Next level incident management in Jira Service Management

Hello Atlassian Community! We’re thrilled to announce some exciting changes to incident management in Jira Service Management Cloud, in order to give your teams extra muscle during incidents, and ...

1,670 views 21 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you