6

Can you change your default 'Activity Status' for adding a new activity? We use completed far more than scheduled...

2

Yes, if you have access to your database, otherwise I don't think so.

You can edit your database. Look for the table called civicrm_option_value and search for WHERE label LIKE 'Scheduled' and WHERE label LIKE 'Completed' and change the values of is_default to 1 or NULL

Here are the exact commands you can run:

UPDATE civicrm_option_value cov JOIN civicrm_option_group cog ON cov.option_group_id = cog.id SET cov.is_default = NULL WHERE cov.name = 'Scheduled' AND cog.name = 'activity_status';
UPDATE civicrm_option_value cov JOIN civicrm_option_group cog ON cov.option_group_id = cog.id SET cov.is_default = 1 WHERE cov.name = 'Completed' AND cog.name = 'activity_status';
1

Yes, sorta! If you don't want to operate on your database directly you can configure some rules to make it work. Instead of actually changing what the default status is, you create a rule to set the status according to your wishes.

Use the CiviRules extension: https://civicrm.org/extensions/civirules.

Create a new rule and for the Trigger select "Activity is added". Add any Conditions you want. And give this rule the Action "Update activity status" which can then be whatever you want.

With that rule in place any time you create an activity its status will get overridden to be whatever you configured it to be.

If you don't want the default status to be overridden all the time but only some of the time, then you can add conditions to that rule to specify when the status should be set. If you wanted you could make various rules to automatically set the status differently in various situations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.