Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
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.
@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.
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!
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
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.
Comments
Comment #1
royerd commentedComment #2
royerd commentedJust wondering if this is possible to have the case auto-close after a certain time.
Comment #3
jmiccolis commentedCurrently 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.
Comment #4
steven jones commentedI totally want this feature, and willing to code too.
Comment #5
jmiccolis commented@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.
Comment #6
steven jones commentedBasically 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!
Comment #7
k1 commentedAlso 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
Comment #8
Grayside commentedThat 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.
Comment #9
steven jones commentedI 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.
Comment #10
steven jones commentedOkay, 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
Comment #11
dagmarPlease check this patch #652338: Case Tracker - Rules integration now you can create actions to close cases.
In my opinion, if you combine Rules executor with this patch, you can close the cases with two weeks without activities.