I know it can be done with Scriptrunner. But want to implement it in my own plugin.
Any ideas?
Plugin tutorial has no examples on that.