Preventing issue reopen after X days

I am looking for a way to block issues from being reopened after X numbers of days. People reopening issues is affecting numbers for our IT team. We do not want to fully block reopen as we see the value in sometimes opening an issue again. Can anyone help?

3 answers

1 accepted

2 votes

Hi Daniel,

this should be exactly the condition that you need. I just tested it in my local instance.

import java.util.Calendar;
import com.atlassian.jira.issue.Issue;
import java.text.SimpleDateFormat;

Issue issue  = issue;
	Calendar now = Calendar.getInstance();
	Calendar resolutionDate = Calendar.getInstance();
	resolutionDate.add(Calendar.DATE, 8);
		return true;
	} else {
        	return false;
return true;

Hi Fabio,

Is there a way to do it with out the groovy script? We disabled groovy on our system.


0 vote

Hello Daniel,

you can easly add a condition in your workflow transition that check issue closure date.


Hi Fabio,

Here is what I have and it is still allowing me to reopen an issue.

The transition requires the following criteria to be valid

  1. Verifies that field Resolved is less than or equal to value of 8d. Including time part.

What am I missing?

0 vote

Hi Daniel,

if you can't use script runner plugin, you can create a java plugin with the code above.


Suggest an answer

Log in or Sign up to answer
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...

523 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