I would like to offer a menu option for admins in JIRA to update a table in Jira DB related to Service Desk.
Any open source repo or link to a plugin tutorial that could cover this?
Thanks in advance,
Action Logic:
There is no way to write to a table of some other plugin using JIRAs db interface Active Objects because AO is sandboxed. There are however several ways to use components of other plugins, which write, read and update those tables. We can assume that if there is a table, there must be some component which manages it.
so in example if you have a table which contains Service Desk information there is probably some Manager which can write, read and update that table. The main task would be to make that Manager available in your action.
If the components of SD plugin are public and have an interface (very likely) then one could use the component-import mechanism to get them into your own plugin.
https://answers.atlassian.com/questions/198581
If this cannot be worked out, one could consider to set up a pluginArtifact.
However that means a hard dependency between both plugins. Meaning that your plugin wont be able to activate, if SD plugin is not activated already.
Thanks a lot, this will get me started.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you're wanting to update data for another add-on you'll need to use it's public api. Otherwise you'll cause issues with caches and events etc. Do not go directly to the database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately JSD doesn't have an API yet (https://jira.atlassian.com/browse/JSD-107). The table I mean holds just the name and description of the service desk you have.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Doesn't matter, you should not write to the table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
while its legal what Daniel Wester said, i think its worth trying. It may cause problems, but must not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
even if you have a plugin A without public API, you can still use its components in your own plugin B, where you have to set plugin dependency to plugin A. see: https://developer.atlassian.com/docs/developer-tools/working-with-the-sdk/about-amps-build-options/amps-build-configuration-reference#AMPSBuildConfigurationReference-pluginArtifacts https://developer.atlassian.com/docs/developer-tools/working-with-the-sdk/about-amps-build-options/amps-build-configuration-reference#AMPSBuildConfigurationReference-bundledArtifacts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.