Answers.Body: <p>You probably hit upon a bug in CiviRules. I would assume that case actions should work with this trigger. What you can do report a bug at <a href="https://lab.civicrm.org/extensions/civirules" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/civirules</a> and if you are technical a fix would also be very welcome! Or if you aren't technical enough you can ask a developer/CiviCRM partner to fix this for you (you probably have to pay them for their time).</p>
  <p>You can also use the work around mentioned by Rebecca.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-07T09:31:39.680Z
Answers.Text: Hi Jaap, thanks for your reply. I will file a bug report, and have been discussing this with our development partners. NB I tried Rebecca's workaround, and some variations, but kept meeting similar problems e.g. error 'This action is not available with trigger Activity is added'. Seems like the action Set the Status of a Case is incompatible with numerous triggers. Will add full details to the bug report.
Answers.UserDisplayName: Tom Rosenbloom
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-07T15:53:09.873Z
Answers.Text: Bug report here: https://lab.civicrm.org/extensions/civirules/-/issues/184
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-06T14:00:54.540Z
Answers.LastActivityDate: 2022-09-06T14:00:54.540Z
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.Body: <p>This is old but I was having the same problem and found the solution (at least for the &quot;Activity is added&quot; trigger. Using the &quot;Case activity is added&quot; trigger works with the action &quot;Set Case Status&quot; but &quot;Activity is added&quot; doesn't.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-02T23:57:00.017Z
Answers.LastActivityDate: 2024-04-02T23:57:00.017Z
Answers.UserDisplayName: Lisa J
Body: <p>I want to use Civi Rules to make older cases have their status automatically updated to something appropriate like 'inactive'.</p>
  <p>I found <a href="https://docs.civicrm.org/civirules/en/latest/basic-example-hints/#daily-trigger-for-case-activity" rel="nofollow noreferrer">https://docs.civicrm.org/civirules/en/latest/basic-example-hints/#daily-trigger-for-case-activity</a></p>
  <p>So I created a rule with Linked Trigger = 'Daily trigger for case activity', and Linked Condition 'Days since Last Case Activity- = 90 days.</p>
  <p>However, I wasn't able to create a suitable Linked Action. I selected 'Set the Status of a Case' - seems like the obvious and only suitable option - but this generates the error 'This action is not available with trigger Daily trigger for case activity'</p>
  <p>What am I doing wrong?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-31T12:06:30.030Z
Comments.Text: A possible workaround may be to have a custom field and set that (dormant = yes) via the trigger above and then have a second rule to set the status for a field value comparison on the custom field
Comments.UserDisplayName: RebeccaTregenna
Tags: <civicase><civirules><actions><trigger><condition>
Title: How can I use CiviRules to update case status based on age of case (set to inactive or similar)
ThreadText: # How can I use CiviRules to update case status based on age of case (set to inactive or similar)
  
  (Asked by: username_0 on 2022-08-30)
  
  I want to use Civi Rules to make older cases have their status automatically updated to something appropriate like 'inactive'.
  
  I found <https://docs.civicrm.org/civirules/en/latest/basic-example-hints/#daily-trigger-for-case-activity>
  
  So I created a rule with Linked Trigger = 'Daily trigger for case activity', and Linked Condition 'Days since Last Case Activity- = 90 days.
  
  However, I wasn't able to create a suitable Linked Action. I selected 'Set the Status of a Case' - seems like the obvious and only suitable option - but this generates the error 'This action is not available with trigger Daily trigger for case activity'
  
  What am I doing wrong?
  
  **Tags:** civicase, civirules, actions, trigger, condition
  
  > **Comments:**
  > **username_1**: A possible workaround may be to have a custom field and set that (dormant = yes) via the trigger above and then have a second rule to set the status for a field value comparison on the custom field  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2022-09-06. Score: 1
  
  You probably hit upon a bug in CiviRules. I would assume that case actions should work with this trigger. What you can do report a bug at <https://lab.civicrm.org/extensions/civirules> and if you are technical a fix would also be very welcome! Or if you aren't technical enough you can ask a developer/CiviCRM partner to fix this for you (you probably have to pay them for their time).
  
  You can also use the work around mentioned by Rebecca.
  
  > **Comments:**
  > **username_0**: Hi Jaap, thanks for your reply. I will file a bug report, and have been discussing this with our development partners. NB I tried Rebecca's workaround, and some variations, but kept meeting similar problems e.g. error 'This action is not available with trigger Activity is added'. Seems like the action Set the Status of a Case is incompatible with numerous triggers. Will add full details to the bug report.  
  > **username_3**: Bug report here: https://lab.civicrm.org/extensions/civirules/-/issues/184  
  
  ---
  
  ### Answer by username_4 on 2024-04-02. Score: 1
  
  This is old but I was having the same problem and found the solution (at least for the "Activity is added" trigger. Using the "Case activity is added" trigger works with the action "Set Case Status" but "Activity is added" doesn't.
  
  
  ---
  
  