JIRA Plugin: Where to start

回眸只為那壹抹淺笑 提交于 2019-12-02 08:01:53

It might be a good idea to start with the scriptrunner plugin. This enables you to write custom groovy scripts for workflow conditions, validators, post-functions, listeners and many more.

The advantage is that the learning curve for simple groovy scripts is not as steep as for "real" plugins. That way you can accomodate with the jira api and then when you hit the point where you can't help yourself with groovy anymore switch over to normal plugin mechanics.

The Introduction to the Atlassian Plugin SDK is actually quite good.

The get your head around try to focus on the type(s) of plugin you want to have:

  • customfield - calculated or not?
  • workflow plugins - validators, conditions

Within each plugin, find out what information you need and then see where from the API you can get that information.

Script Runner is easier to learn and it does exactly what you are asking for. A SR script can become also a JIRA plugin if you want to install it in other instances (SR plugin must be available). Learning Script Runner helps you to understand better how to develop JIRA plugins, in any case it's not time wasting because you can easily switch between native JIRA plugins and SR (SR uses JIRA components so the main logic is still the same, it just hides most of the annoying and repetitive stuff). You can start with this template:

https://bitbucket.org/jamieechlin/sr-scripts-plugin/overview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!