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 ?
you can use the project automations feature for this
Hello,
Yes it is possible to create recurring tasks in Jira. You can find a tutorial in this page:
https://developer.atlassian.com/docs/atlassian-platform-common-components/shared-access-layer/scheduling-events-via-sal-tutorial
I use a cron script that pokes things in over the REST API, but for something a bit less reliant on a bit of command line stuff, yes, you can do it.
There are several add-ons in the marketplace that can do it with a friendlier UI from within Jira, and the generalised tools like Automation and ScriptRunner enable you create regular processes.
You can, of course, write your own too. Have a look at https://developer.atlassian.com/docs/atlassian-platform-common-components/shared-access-layer/scheduling-events-via-sal-tutorial if you want to do it yourself.
awesome! thank you!
Thank you for the information, trying to avoid using add-ons...using a cron script over the REST API works too?
Absolutely. The code I use is pretty much a plain rip-off of https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue
Don't use SAL's scheduler - it's in the process of being deprecated. There's now a new scheduler at https://bitbucket.org/atlassian/atlassian-scheduler which replaces SAL's scheduler. There's an example of how to use it at https://bitbucket.org/cfuller/atlassian-scheduler-jira-example
Hello, try the Repeating Issues app for Jira.
OMG, feature request please! (also for jira cloud)
I know it's an old question, but came across it searching for the same answer. Here's what I found: It's simple. Create an automation rule to fire at the desired period and have the rule create the issue(s) you need.
Why would I pay for such a basic function? Waste of money.
Hi,
Our customers do not pay for such basic features but rather for something that help them achieve their goals and work better (including support).
Cheers,Product Owner of Repeating Issues app.
I second this, with the new automation features I was able to have the same task fire off each day
This will require people to learn coding only to create recurring task. Atlassian can do better
Do you have an example of such an automated rule? Which steps to set in the automation flow?
Project settings > Apps > Project Automation > Create Rule
The select a Scheduled trigger and from there on I think it is rather clear what to do
Thanks, @Stoyan Stoitsev! This is exactly what I was looking for. For those who want to setup tasks that are always done annually, you can use the Advanced CRON expression rather than Fixed rate scheduled (based on number of days). For example:
0 0 12 1 NOV ? = November 1st of any day of the week (?) at exactly 12:00:00 UTC.
Using a Fixed rate schedule of 30 days is nice, but doesn't work so well if you want to generate an issue on the first day of the month, etc. (and it's not the first day of the month when you're creating the automation). Another CROM expression that would handle it for you:
0 0 12 1 * ? = The first day of every month at 12:00:00 UTC
Or maybe you only want it to get generated on the first weekday of the month so it doesn't land on weekends (yes, the added "W" is all it takes):
0 0 12 1W * ? = The first day of every month at 12:00:00 UTC
Here's all the CRON goodies:
https://support.atlassian.com/jira-software-cloud/docs/construct-cron-expressions-for-a-filter-subscription/
Writing recurring tasks app from scratch might be a nightmare. There are many factors you need to consider:
In most cases, ready-to-use apps will be a better solution. Most of them are paid but you get a good product with support in return.
While I agree that this should be a default feature, that people need to code is not exactly a crazy requirement for a tool that is mostly used by software development teams. :-)
I agree, this is a bit of a joke. You should be able to simply set a "recurring" field in the ticket, and new ones should be automatically created each day based on the field.Using automation rules seems a bit crazy.
After you have selected scheduled trigger and set up the frequency of the ticket (i.e. time and date) and selected new action ; Create an issue and ENSURE you have selected your project manually from the drop down list (instead of going ahead with the default one), select issue type as task. Then save and run it . This way you can create an automated recurring ticket.
Hello!
If you`re ok with Jira plug-ins try out the Recurring Checklists and Report, developed by my team. This app allows to create, automate and control Jira issues with a checklists in one place.
Learn more how to manage recurring tasks or read our use case about the security checklist
That works, but is not ideal because it means giving access to automation to all users. Ideally, you'd be able to simply mark an issue as recurring, and it would generate a new issue and assign it. You should be able to specify how far in advance the issues are created.
It looks like you're new here. Sign in or register to get started.