Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

limit time to reopen ticket

PeterN I'm New Here Jun 21, 2021

Hi, I try to limit time (for 3 days) to user can reopen ticket.. I added transition, visible on portal, works fine.. but tried this old java I found, didnt worked.. any help?


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, 3);
		return true;
	} else {
        	return false;
return true;

1 answer

0 votes
Fazila Ashraf Community Leader Jun 21, 2021

Hi @PeterN 

Where are you applying this script?

Leaving the script aside, the standard practice is to auto-close the issue (either using automation for jira or scriptrunner script jobs) certain days after resolved. Till then the users can get to reopen the ticket.


Why not use that? 

PeterN I'm New Here Jun 21, 2021

i dont know how to do that, dont have scriptrunner installed (i think)


this script is done at "condition" at transition

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

155 views 0 3
Read article

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