Answers.Body: <p>I think the best way to do this is with smart groups instead of custom fields.  Create a smart group of folks who have a translation activity that's unfinished; create another smart group of everyone not in the first smart group.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-06T22:48:24.987Z
Answers.Text: Assume you mean using the Custom Search = Include/Exclude ie civicrm/contact/search/custom?csid=4&reset=1
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-07T00:19:55.287Z
Answers.Text: @petednz-fuzion My understanding is that Search Builder will now correctly handle this scenario, though I haven't tested recently.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-31T04:08:49.513Z
Answers.LastActivityDate: 2018-12-31T04:08:49.513Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>I don't know if it's possible to do this without at least a little custom code. I think in any case the completion status of a translation should be tied to its activity status field, i.e. if the activity status is Completed, then the translation is completed. Also the "available?" field on the contact would be a "view only" custom field not a manually updated field. After that, there's a couple choices:</p>
  
  <ol>
  <li><p>See if the CiviRules extension can do this. I haven't tried but the idea would be to create a trigger when the activity status is changed that updates the view-only custom field.</p></li>
  <li><p>Write an extension that does the same thing as #1. When an activity of type translation is saved:</p>
  
  <p>(a) If the activity status is Completed, set the view-only field to "yes" (i.e. person is available).</p>
  
  <p>(b) If not, set the view-only field to "no".</p></li>
  <li><p>Don't have a contact custom field, but write an extension that uses the hook_civicrm_summary that adds some output to the contact summary page:</p>
  
  <p>(a) If all activities of type translation have status Completed, display "Available".</p>
  
  <p>(b) Otherwise, display "Not Available".</p></li>
  </ol>
  
  <p>In all options the staff member would only need to do one thing and that's update the activity status field to Completed when the translation is done.</p>
  
  <p>As a more general extension that would include this functionality, I think an extension that could display something on the contact summary based on the combined state of the contact's various activities' fields would be quite useful. For example, instead of a contact custom field "Best PacMan score", you could have separate activities that record their scores for each game they played, and the extension would take the best one and display it on the contact summary. Just thinking out loud.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-02T03:29:44.973Z
Answers.LastActivityDate: 2018-10-02T03:29:44.973Z
Answers.UserDisplayName: Demerit
Body: <p>I'm looking to use CiviCRM to - in part - manage our team of around 50 volunteer translators. Once a volunteer has agreed to take on a translation, staff will set an activity, so that we can keep a record of how many translations people have done. I've set that up, with a number of custom fields for the volunteer contact, and for the activity (a URL of the original text, the date we should receive the translation, etc).</p>
  
  <p>What I would like to be able to do but can't work out out the functionality of, is - once an activity has been assigned - for something in the volunteers contact sheet to display that they are currently translating (I can do this manually, but busy people probably won't necessarily always do two steps, so we could end up with activities being assigned but the translator still appearing "available"). This way when a staff person comes to search for a translator (by language to/from, and their availability) they only get shown volunteers who aren't currently completing activities.</p>
  
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-01T17:11:07.573Z
Comments.Text: How do you record when the person is finished translating, and who records that?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-01T21:17:58.497Z
Comments.Text: The staff person will record it. My idea was they would switch the "available?" toggle back to "yes" in the individuals contact form.
Comments.UserDisplayName: Cozy4907
Tags: <activity>
Title: Activity changes individuals busy/available status
ThreadText: # Activity changes individuals busy/available status
  
  (Asked by: username_0 on 2018-10-01)
  
  I'm looking to use CiviCRM to - in part - manage our team of around 50 volunteer translators. Once a volunteer has agreed to take on a translation, staff will set an activity, so that we can keep a record of how many translations people have done. I've set that up, with a number of custom fields for the volunteer contact, and for the activity (a URL of the original text, the date we should receive the translation, etc).
  
  What I would like to be able to do but can't work out out the functionality of, is - once an activity has been assigned - for something in the volunteers contact sheet to display that they are currently translating (I can do this manually, but busy people probably won't necessarily always do two steps, so we could end up with activities being assigned but the translator still appearing "available"). This way when a staff person comes to search for a translator (by language to/from, and their availability) they only get shown volunteers who aren't currently completing activities.
  
  Thanks!
  
  **Tags:** activity
  
  > **Comments:**
  > **username_1**: How do you record when the person is finished translating, and who records that?  
  > **username_0**: The staff person will record it. My idea was they would switch the "available?" toggle back to "yes" in the individuals contact form.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-12-31. Score: 1
  
  I think the best way to do this is with smart groups instead of custom fields. Create a smart group of folks who have a translation activity that's unfinished; create another smart group of everyone not in the first smart group.
  
  > **Comments:**
  > **username_3**: Assume you mean using the Custom Search = Include/Exclude ie civicrm/contact/search/custom?csid=4&reset=1  
  > **username_2**: @petednz-fuzion My understanding is that Search Builder will now correctly handle this scenario, though I haven't tested recently.  
  
  ---
  
  ### Answer by username_1 on 2018-10-02. Score: 0
  
  I don't know if it's possible to do this without at least a little custom code. I think in any case the completion status of a translation should be tied to its activity status field, i.e. if the activity status is Completed, then the translation is completed. Also the "available?" field on the contact would be a "view only" custom field not a manually updated field. After that, there's a couple choices:
  
  1. See if the CiviRules extension can do this. I haven't tried but the idea would be to create a trigger when the activity status is changed that updates the view-only custom field.
  2. Write an extension that does the same thing as #1. When an activity of type translation is saved:
  
     (a) If the activity status is Completed, set the view-only field to "yes" (i.e. person is available).
  
     (b) If not, set the view-only field to "no".
  3. Don't have a contact custom field, but write an extension that uses the hook\_civicrm\_summary that adds some output to the contact summary page:
  
     (a) If all activities of type translation have status Completed, display "Available".
  
     (b) Otherwise, display "Not Available".
  
  In all options the staff member would only need to do one thing and that's update the activity status field to Completed when the translation is done.
  
  As a more general extension that would include this functionality, I think an extension that could display something on the contact summary based on the combined state of the contact's various activities' fields would be quite useful. For example, instead of a contact custom field "Best PacMan score", you could have separate activities that record their scores for each game they played, and the extension would take the best one and display it on the contact summary. Just thinking out loud.
  
  
  ---
  
  