How can I store user input from a Velocity Template into a Active Object?

I want to create a velocity template consisting of a few fields to use in a web-panel for the view-isssue screen. The fields should contain information retrieved from a Active Object Entity. The user is then able to change the values inside these fields. If there is no data stored ub the Active Object for the current issue the user input will be stored as a new entry.

So basically I want to update the values in the Active Object Entity with the new values entered by the user in a Velocity Template for a web-panel. Is this possible and if so how can I achieve this?

I have looked at servlets and web actions but as far as I know I can't put these inside a web-panel.

1 answer

This widget could not be displayed.
Alexey Matveev Community Champion Nov 29, 2017

Hello,

I do not ask why you do not want to store values in custom fields. But it is possible. Develop Rest Api in your plugin and store data in ao through the rest api. You can call your rest api from your velocity templates and pass values of required fields to your rest api

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

45 views 2 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you