How to present a configuration screen for the Atlassian plugin?

I am creating a plugin to send HTTP requests to the server whenever I open or edit the transfer request in atlassian stash. I got a plugin for working with hard-coded values ​​(e.g. url, various url parameters, etc.), but now I need to present a configuration screen so that these values ​​can be set after installing the plugin. All I need to tweak is a couple of text strings and matching strings to strings. Nothing complicated!

Unfortunately, stash and atlassian api are a bit fuzzy: there is information for linking to a servlet or something else and a description of how you have a configuration object to connect to it, but all I can find. They also point to a couple of examples, such as google maps and webdav plugins, but without comment it can be Latin.

Can someone point me to an example or tutorial that shows how to present a configuration panel for a plugin (or atlassian)?

+4
source share
1 answer

The structure of the Atlassian plugin is a fairly broad topic, especially because there are subtle differences in the capabilities between different specific products (JIRA, Confluence, FishEye, Stash, etc.), and as such, there are resources throughout the network for helping to understand, interact and program against available infrastructure components and API endpoints. I myself am working on how to add configuration and found useful resources (although they may be universal for the Atlassian plugin platform, most concepts are still applied):

https://developer.atlassian.com/display/DOCS/Creating+an+Admin+Configuration+Form

https://developer.atlassian.com/stash/docs/latest/reference/plugin-module-types/plugin-modules.html

+3
source

All Articles