v1 plug-ins in JIRA 6.x versions


Is it okay to have v1 plug-ins in JIRA 6.x or is it best practice to have all v2 plug-ins? Also is a v1 plug-in considered as not recommended because it adds jars to WEB-INF/libs which contains all other JIRA system jars?

Is there a security concern or will atlassian support provided be lessened due to having v1 plug-ins?

Any clarification would be appreciated.


2 answers

1 accepted

0 vote

It is okay to have v1 plugins although v2 is recommended because it makes the upgrades easier. Atlassian support won't be limited just because you have a v1 plugin.

For the sheduled task using scheduler-config.xml, you must do it as v1 plugin. But there is another approach to do scheduled tasks in JIRA using SAL. See https://developer.atlassian.com/display/DOCS/Plugin+Tutorial+-+Scheduling+Events+via+SAL. That will be a v2 plugin.

Is it possible to use cron expressions to make the plug-in run at a given time/interval through SAL? Which approach(scheduler-config.xml or SAL) would be considered as recommended?


I'd start with SAL though I have also written services that extend AbstractService directly. That's more fiddly to get right

Can SAL be used with cron expressions for scheduling? The tutorial suggested above doesn't show how to use cron expressions with SAL. Could you please suggest some links if possible.


0 vote
Timothy Chin Community Champion Jan 06, 2014

Not sure why you don't want to upgrade to version 2. Too much work perhaps?


Its because what I've written is a scheduled task, and I can't find a way to reference the jar file included in WEB-INF/lib from WEB-INF/classes/scheduler-config.xml if I put the jar file in any other folder, as in make it a version 2 plug-in and then the installed folder becomes different.

Is there any other way of doing this?


Daniel Wester Community Champion Jan 08, 2014

You could install the jar in your local maven repo and then reference it.

See http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html for more details.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

856 views 2 9
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