Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,406
Community Members
 
Community Events
165
Community Groups

Development ACE Jira Cloud how to get accountId on the backend?

Hello,

I am contacting you after several unsuccessful searches.

I am on the development of an application for Jira Cloud with atlassian connect express and I am using NodeJS

I will want to retrieve the accountId of the user who forwards the request in my router at my NodeJS backend, however I cannot find any documentation on req and addon for ACE Jira Cloud.

The Rest API that Jira offers with AP.request (..) is not accessible from the backend.

Thanking you.

1 comment

Bloompeak Support Marketplace Partner Oct 27, 2021

Hi @Julien Bedia ,

AP.request is used on the client side. On the backend(aka server side), you can access accountId using res.locals.userAccountId.

See below documentation for other "special context variables" stored in res.locals.

https://bitbucket.org/atlassian/atlassian-connect-express/src/master/

Like Julien Bedia likes this

Hi @Bloompeak Support 

 

Oh nice, thank you !

 

Best regards,

 

Julien.

Like Bloompeak Support likes this

Comment

Log in or Sign up to comment
TAGS

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