For example, I would like to get a monthly task to review a list of servers for updates.
Can any one tell me how would be possible in jira plugin development using scriptrunner?
You can create a file named service1.groovy with the following content
package groovy
log.error("service completed");
Then you put this file to <JIRA_HOME_DIRECTORY>/scripts/groovy
and then you configure a service in JIRA. You can read here how to configure it:
https://scriptrunner.adaptavist.com/4.3.0/jira/services.html#_usage
When you need to provide a groovy script file provide the following line
groovy/service1.groovy
That is it. You will see in atlassian-jira.log file "service completed". Then change service1.groovy as you wish to meet your buisness goal.
You can schedule a script to run every month (on any time period) by using Services in ScriptRunner which are described here.
Hope this helps.
Adam
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.