Script for automatically re-opening tickets the 1st of every month Edited

 Hi!

I need assistance with a custom script for the following condition:

-automatically re-open a specific ticket 'Test-1' for the 'TEST' project every 1st of each month;

-the ticket has to transition from 'Closed' status to 'Pending BA' status every 1st of each month;

-this has to only apply to that one specific ticket.

 

I already have the periodicity covered by using a new service on the groovy class. However, I am clueless about writing the script to achieve the rest.

Any help with the script would be greatly appreciated. Thanks.

Daniel

1 comment

Steven Behnke Community Champion Jan 02, 2018

Hi Daniel. I moved your post because it was more of a Jira related thing, though I now realize this really belongs in the Questions area... Still getting used to this software. :)

You mention Groovy: Do you have the Scriptrunner add-on? The Escalation Service Built-in Script should be able to do this, no code required.

Hi Steven! Just to double-check, is this the CRON expression I should be using?

0 0 0 1 JAN-DEC ? *

Thanks.

Steven Behnke Community Champion Jan 03, 2018

That does indeed look correct to me.

Comment

Log in or Sign up to comment
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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

484 views 1 18
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