Plugin to update a Jira Table

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,

2 answers

1 accepted

0 votes
Accepted answer


  1. create a simple webwork action which is supposed to execute the update task.
    you dont have to define and write vm templates. All you need is to wire up an action class which is going to handle the update operation in its execute() method.
  2. create web item in admin menu.
    link that webitem to your webwork action (1).


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.

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.

1 vote
Daniel Wester Community Champion Jun 13, 2015

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.

Unfortunately JSD doesn't have an API yet ( The table I mean holds just the name and description of the service desk you have.

Doesn't matter, you should not write to the table.

while its legal what Daniel Wester said, i think its worth trying. It may cause problems, but must not.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,272 views 5 10
Read article

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