atlascommunity / jira-plugins-groovy

Jira Groovy plugin
https://atlasteam.ru
BSD 2-Clause "Simplified" License
66 stars 42 forks source link

JD-1415. Raw implementation of expressions function added #113

Closed Raschudesny closed 3 years ago

Raschudesny commented 3 years ago

Still very raw implementation of expression function.

  1. There is no support for jira-way jql short dates like: 1w, 2d, 3wd etc...
  2. There is no support for JQL function calls, like now(), currentUser() and others
  3. GroovyShell runs is not safe (maybe there is possibility for some security vulnerabilities here)
  4. Right now all script execution fails will cause RuntimeError in getQuery function. This is not good way to deal with them because most of the user input errors (like adding or comparing not comparable types) can be found only during script execution. On the other hand jira api forces all the jql-functions to show input errors on validate() stage.