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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

849 views 2 9
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