Automatically close cases after X days
royerd - March 27, 2009 - 02:46
| Project: | Case Tracker |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Steven Jones |
| Status: | active |
Jump to:
Description
Is there a way to have case tracker automatically close the case after a set time of inactivity?
Dan

#1
#2
Just wondering if this is possible to have the case auto-close after a certain time.
#3
Currently there is no 'out-of-the-box' way to do this. If you're willing to do some programming it's certainly possible and would make a great patch.
If you do choose to work on it please be aware that we're no longer adding features to the 5.x series, so code for 6.x if you want to see it committed.
#4
I totally want this feature, and willing to code too.
#5
@Steven Jones, right on! Can you let me know a bit more of the details you're thinking about? Are you looking for something like what project module does, where a case with any of a couple statuses is pushed to closed after a period of inactivity? ...or simply to time limit cases?
Also, let me know what you're thinking implementation wise - we're got actions support in case tracker now, so it may be possible to use a very generic tool to run a specified action on cases that meet some selectable criteria.
#6
Basically I want to give people the option of saying:
In this project if a case is left for X days in status Y or Z, mark it closed.
Oh Actions might be the way to go, I'll look and see how far I can get and fill in any blanks I come across. Actions might be able to do it all anyway!
#7
Also can you assign a case starting from a certain date? for example person gets assinged a task starting from a certain date and after a certain period of time that task automatically closes
#8
That sounds like a combination of Case Tracker's actions with the Rules module.
EDIT: Getting the date of the user assignment might take further programming.
#9
I think Rules is the way to go. There are two major hurdles to using Rules to do the closing:
1. Casetracker doesn't integrate with rules, and so you can't add conditions.
2. Rules can't iterate over all nodes yet.
#10
Okay, so I reckon what is needed is a general way to 'render' a view into a rule set. I've got some code that does just that, I just need to know what to do with it.
Related issue: #634578: Rules executor