Create script with Jelly for recurring issue

Hello all,

I need some help trying to create this automated process in which an issue is created automatically once a month. I've already tried the plugin The Scheduler, which didn't work because of some error message I've always received after creating the original issue.

Now I've contacted the Atlassian Support who told me that it is possible to create something like this using Jelly.

I need to have this checklist created once a month and it needs to be assigned to a group of users.

Any help on how to accomplish this would be very much appreciated.

With regards,

Sebastian

3 answers

0 vote

First, create a Jelly script that does the job when you run it as an admin in the foreground.

The basics of enabling Jelly and where to run them is at the top of https://confluence.atlassian.com/display/JIRA/Jelly+Tags - skim that, and then look further down, specifically for "Jira:CreateIssue"

Once you have a script that does what you need, when you run it manually, head off to https://confluence.atlassian.com/display/JIRA/Services to see how to set it up as a "service" which you can schedule.

Hi Nic,

thanks for your reply. I've just managed to setup the script to create an issue within the defined interval.

Now I'm wondering if there is any way to put in a spreadsheet or a checklist for things that need to be done into the description field?

With regards,

Sebastian

Not really. I think you can do attachments in Jelly, so you could create a simple template spreadsheet and upload a copy of that every time as part of the script. But it's an attachment, not a checklist

The other option that springs to mind is to ensure the Description field uses the wiki-markup renderer and then put a table or bullet point list in the description as it creates the issue.

Hi,

but if I'd use attachements there would always have to be a issue key which I would not know because the issue is not yet created.

Here's the code I'm currently using:

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">
<jira:Login username="Sebastian" password="***"/>
<jira:CreateIssue project-key="PT" assignee="Test" summary="LKWs checken" 
description="" 
reporter="Sebastian" duplicateSummary="ignore"
>
<jira:AttachFile key="???" filepath="/tmp/somefile" option="override"/>
<!-- other jelly tags -->
</jira:CreateIssue>
</JiraJelly>

The only thing I have at that moment is a project key. As an alternative I could maybe use an URL to a file, that could be downloaded.

Thanks so far. If you have any other ideas please let me know.

With regards,

Sebastian

For automatic repeating issues you can use Repeating Issues for JIRA https://marketplace.atlassian.com/plugins/com.codedoers.jira.repeating-issues


This add-on can execute different actions repeatedly for given issue e.g. clone issue, create sub-task in issue, traverse isssue workflows - set once and forget!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,331 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot