Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,559,703
Community Members
 
Community Events
185
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
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
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