How to create recurring tasks in JIRA

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?

2 answers

2 votes

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 2 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

15 views 0 1
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you