It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Create script with Jelly for recurring issue

acomm gmbh Jul 31, 2013

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 votes
Nic Brough [Adaptavist] Community Leader Jul 31, 2013

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.

acomm gmbh Aug 08, 2013

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

a display name Aug 10, 2013

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.

0 votes
acomm gmbh Aug 11, 2013

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

0 votes
CodeDoers Jul 29, 2015

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 Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Software

Demo Den Ep. 5: Meet Jira Mobile

See how to use Jira on the go! Demo Den Episode 5 is here: meet Jira Mobile with  Jira  Product Manager Rayen Magpantay.  Demo Den is in our monthly series where a Jira PM demonstrates...

310 views 1 10
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you