How to add a custom form in a project tab panel plugin (Jira SDK)

1k views Asked by At

I'm using the latest Jira SDK and Jira version (currently 6.x).

I'm able to create a Project tab panel plugin and display a form in the velocity template, but I would like to save data when a user post this form and also retreive the saved data to populate the form on display.

What should I use to read and write data from my "project tab panel" ?


More information about our needs for this plugin :

  • The purpose of the plugin is to store speicific information about our Jira projects in a custom tab so that everybody can see it (ex : customer, who's the project manager, etc.)

  • Also, any user should be able to fill the information and edit it later. Everybody see the same information.

  • The stored data is not read only, it should be possible to edit it

  • We'll need some validation on a couple of fields

  • The data could be accessed by everybody to start. But it's possible that we'll have to secure it later. If it's the case, we'll completely hide the tab panel if the user doesn't have access.

2

There are 2 answers

5
Seika85 On

Try using Active Objects (recommended) or Plugin Data Storage.

If this does not help you enough, I need more specific information like:
   - Does one user store data, which should be available to everybody?
   - Does a user save data only for himself?
   - Should the stored data be read-only or writable?
   - Should the stored data be accessible only by few users (e.g. with specific rights)?
0
Vitor Pelizza On

You can use the REST API module to expose your APIs and then do ajax requests to POST and GET your data. This is a good solution for building add-ons on a "single page application" fashion.

Cheers.