I have already delegated post-functions to event listeners. And now I want to delegate workflow validation to my plugin too. How can I do this?
I know that I can create custim workflow validator but in this case Ialso need to assign this validator on the specific workflow transition. Moreover, this validator will be able from validators list but I don't need it. My validator is useless outside my plugin. I need make my validator inaccessible outside plugin.
No, there's no way to do this. Once an add-on announces one of its modules as a validator, it goes on the list of available validators.
I'd add code to the top of your validator to say "if called in the wrong way, return a "pass"", and put something in the description to tell admins when to use it
Validators are for checking fields (and other data) before committing a transition. You'd have to implement a whole new structure in the workflow engine in Jira.
Why is this such an issue? Most administrators won't use a validator that isn't relevant to their process flow, and even if they do use it in the wrong place, all you have to do is return a "no, validation failed" error by default.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
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!
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