Answers.Body: <p>You can do this with CiviRules. The trigger is then Case is changed. At the condition you can select Field Value Comparison to check for the right case status. </p>
  
  <p>At the action you select: Send E-mail to contacts on a case'</p>
  
  <p>It might be that you need two condition with the field value comparison, one of the old case status and one for the new case status.</p>
  
  <p>You need for this the CiviRules extension and the Email api extension.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-31T15:26:27.523Z
Answers.Text: @jaap-jansma-civicoop thanks for this. I have both extensions (and both updated) but I don't have an option to 'send e-mail to contacts on a case'. I only have 'send e-mail' and (twice) 'send e-mail to a related contact'. 
  
  Also, I'm not sure if this is a separate issue, but I wanted to include a link to the {$manageCaseURL} - using the CiviCase Tokens extension - but this didn't load at all. It just returned the text as-is (i.e. "{$manageCaseURL}" ) not the result. Would you expect this to work?
Answers.UserDisplayName: Rose Lanigan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-01T07:00:37.193Z
Answers.Text: Are you using a case trigger? E.g. case activity added, case added etc?
  If so then the action send e-mail to a role on the case becomes available. 
  Not sure about the CiviCase Tokens Extension ideally it should work but it wouldn't suprise me if it doesn't.
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-07T11:54:43.890Z
Answers.Text: I'm using the 'Case is changed' trigger. The only option including the word 'role' is 'set role on case'? CiviCRM v5.21.2 and CiviRules v2.13. Seems a bit odd?!
Answers.UserDisplayName: Rose Lanigan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-07T14:53:56.907Z
Answers.Text: Do you have the e-mail api extension installed?
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-06T14:06:42.213Z
Answers.LastActivityDate: 2020-03-06T14:06:42.213Z
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.Body: <p>On the change case status activity, there's a section called send a copy where you can select them. Or put the person in the assignee field. Both will cause them to be sent an email.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-05T21:15:36.780Z
Answers.Text: I want to send a specific email template, rather than a copy of a CiviCRM activity. It's for an external person, so the assignee option isn't appropriate. Your answer makes me think it's not possible, and it will always need to be a manually generated email?
Answers.UserDisplayName: Rose Lanigan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-05T21:26:44.720Z
Answers.Text: The message template it uses is the one called "Cases - send copy", so if you're willing to edit that template it can have whatever you want.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-05T20:10:45.913Z
Answers.LastActivityDate: 2020-03-05T20:10:45.913Z
Answers.UserDisplayName: Demerit
Body: <p>I would like to trigger an email to a particular Role on a Case (not the Client) when a Case Status is changed. Is this possible? I've added the CiviCase Tokens Extension, and I can create a message template to be triggered (containing CiviCase tokens, such as the name of the client), but CiviRules doesn't appear to have the option to specify a different email on the Case. </p>
  
  <p>I tried to use the token {case_roles.<em>role</em>_email} in the 'Use alternative email' option in CiviRules, but it doesn't see that as a valid email address.</p>
  
  <p>Any other ideas I can try?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-05T18:43:23.647Z
Comments.Text: "to trigger an email to a particular Role on a Case" pedantic moment - do you mean "to trigger an email to any Contact that has a particular Role on a Case"? Also which CMS?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-05T21:09:03.840Z
Comments.Text: Sort of - there will only ever be one contact with the role I'm interested in, so it's synonymous. The Contact on the Case with this Role. 
  Drupal.
Comments.UserDisplayName: Rose Lanigan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-06T01:53:36.890Z
Comments.Text: check Drupal Rules?
Comments.UserDisplayName: petednz - fuzion
Tags: <civicase><tokens><civirules>
Title: CiviCase + CiviRules + Tokens
ThreadText: # CiviCase + CiviRules + Tokens
  
  (Asked by: username_0 on 2020-03-05)
  
  I would like to trigger an email to a particular Role on a Case (not the Client) when a Case Status is changed. Is this possible? I've added the CiviCase Tokens Extension, and I can create a message template to be triggered (containing CiviCase tokens, such as the name of the client), but CiviRules doesn't appear to have the option to specify a different email on the Case.
  
  I tried to use the token {case\_roles.*role*\_email} in the 'Use alternative email' option in CiviRules, but it doesn't see that as a valid email address.
  
  Any other ideas I can try?
  
  **Tags:** civicase, tokens, civirules
  
  > **Comments:**
  > **username_1**: "to trigger an email to a particular Role on a Case" pedantic moment - do you mean "to trigger an email to any Contact that has a particular Role on a Case"? Also which CMS?  
  > **username_0**: Sort of - there will only ever be one contact with the role I'm interested in, so it's synonymous. The Contact on the Case with this Role.  Drupal.  
  > **username_1**: check Drupal Rules?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2020-03-06. Score: 2 | Accepted answer
  
  You can do this with CiviRules. The trigger is then Case is changed. At the condition you can select Field Value Comparison to check for the right case status.
  
  At the action you select: Send E-mail to contacts on a case'
  
  It might be that you need two condition with the field value comparison, one of the old case status and one for the new case status.
  
  You need for this the CiviRules extension and the Email api extension.
  
  > **Comments:**
  > **username_0**: @jaap-jansma-civicoop thanks for this. I have both extensions (and both updated) but I don't have an option to 'send e-mail to contacts on a case'. I only have 'send e-mail' and (twice) 'send e-mail to a related contact'.   Also, I'm not sure if this is a separate issue, but I wanted to include a link to the {$manageCaseURL} - using the CiviCase Tokens extension - but this didn't load at all. It just returned the text as-is (i.e. "{$manageCaseURL}" ) not the result. Would you expect this to work?  
  > **username_2**: Are you using a case trigger? E.g. case activity added, case added etc? If so then the action send e-mail to a role on the case becomes available.  Not sure about the CiviCase Tokens Extension ideally it should work but it wouldn't suprise me if it doesn't.  
  > **username_0**: I'm using the 'Case is changed' trigger. The only option including the word 'role' is 'set role on case'? CiviCRM v5.21.2 and CiviRules v2.13. Seems a bit odd?!  
  > **username_2**: Do you have the e-mail api extension installed?  
  
  ---
  
  ### Answer by username_3 on 2020-03-05. Score: 0
  
  On the change case status activity, there's a section called send a copy where you can select them. Or put the person in the assignee field. Both will cause them to be sent an email.
  
  > **Comments:**
  > **username_0**: I want to send a specific email template, rather than a copy of a CiviCRM activity. It's for an external person, so the assignee option isn't appropriate. Your answer makes me think it's not possible, and it will always need to be a manually generated email?  
  > **username_3**: The message template it uses is the one called "Cases - send copy", so if you're willing to edit that template it can have whatever you want.  
  
  ---
  
  