Along with all other uses, we use JIRA as our IT helpdesk system.
Currently, users are able to reopen a case anytime, even years old cases
I would like to make a change so that along with other requirements - A workflow cannot transition if it's been more than 7 day since closure.
Thanks for taking the time trying to help, it is much appreciated.
Just wanted to update what I have eventually done:
Since I am no script master, I used the JQL query function of script runner with the following query:
"status in (Resolved, "Closed With No Resolution", Closed) and status changed AFTER -7d"
I used this as a condition for the "Reopen" workflow transition and it worked perfectly.
add a workflow condition. If you have scriptrunner it is pretty easy, if not, a little bit more work.
Code should be pretty straight forward though.. Create a timestamp 7 days in the past, compare that the the RESOLVED date. Or add 7 days the the resolved date and compare that to current date.
Someone else has previously answer this question and supplied the code required.
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
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