v1 plug-ins in JIRA 6.x versions

Hi,

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.

Thanks

2 answers

1 accepted

This widget could not be displayed.

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?

Thanks

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.

Thanks

This widget could not be displayed.
Timothy Chin Community Champion Jan 06, 2014

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

https://developer.atlassian.com/pages/viewpage.action?pageId=851971

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?

Thanks

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

529 views 3 19
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