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,882
Community Members
 
Community Events
185
Community Groups

Atlassian Jira DC React Application - Rest API assistance

I have a Forge app written in React that use the storage API to simulate saving into 2 entities (tables).  I need a DC version of the app.  The React component (frontend) is fine.    The backend is where I'm having troublle, due to my lack of experience in Java.

I know how to execute the POST, GET, etc from React, but am not clear on the Java classes/modules required in the backend.   What I'm after is an example of the backend Java Rest API code required to insert  a record into an AO entity with say 3 fields.  The tutorials only work with a GET for all fields.  

Any help would be appreciated

 

1 answer

1 accepted

0 votes
Answer accepted
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 18, 2023

It may not be the best tutorial, because (due to simplicity) it uses a Java Servlet instead of any mature web framework, but your question was about how can I save an ActiveObjects managed entity object?

And for that, see this code snippet: https://developer.atlassian.com/server/framework/atlassian-sdk/getting-started-with-active-objects/#dopost

You just need to call save() in the right context (in a transaction).

Suggest an answer

Log in or Sign up to answer