I have a custom field called event_count whose value I am geting from an external system called Qradar while ticket creation using post REST call. Now I want that custom field value to get updated after a certain period of time by making a get REST call to qradar. How to run groovy scripts as a jira service? This groovy script will not be invoked on a particular event but rather after a fixed interval of time.
You would need the ScriptRunner plugin for it.
ScriptRunner plugin as in I have to write a Behaviour script & register as it a service in jira. But my question is in which path I will save the groovy script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can not execute behaviour as a script. Behaviour requires html browser to be run, but your script will work in the server.
You usually save scripts in JIRA_HOME/scripts folder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply. And this script kept in this path can I register as service in jira? As I am keeping a groovy script inside WEB-INF/classes & trying to register it as a service which is giving me an error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You write a script and put in in JIRA_HOME/scripts directory. Then you create a service according to this guide
https://scriptrunner.adaptavist.com/latest/jira/services.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.