Rule: Disable-hierarchy-for-task-selection-when-task-is-chosen
loading x elements...

Name: Disable-hierarchy-for-task-selection-when-task-is-chosen

Version: 11

Discussion Thread

NOTE: this Rule has been deleted.

There is a newer version of this Rule.

Creator: initial_tools

Hardcoded Priority (supersedes the rating): 4.5

This Rule has moderator approval.

If a task_ has been defined, nullifies hierarchy_for_task_selection_currently_active.

Also deactivates Enable-hierarchy-for-task-selection-root and the Option created by it.

This ensures that the hierarchy of features is no longer displayed to the user when there already is a task_ being worked on.

ID: 361

Created: April 16, 2019, 7:34 p.m.

full definition:

The below is the JSON description of this object.

It is annotated with links to the documentation of each component.

You can hide fields with default values to make things clearer, and copy it to a clipboard to make creating similar Rules and Options easier.

Rule

{ "name" : "Disable-hierarchy-for-task-selection-when-task-is-chosen", "description" : "If a task_ has been defined, nullifies hierarchy_for_task_selection_currently_active.

Also deactivates Enable-hierarchy-for-task-selection-root and the Option created by it.

This ensures that the hierarchy of features is no longer displayed to the user when there already is a task_ being worked on."
, "dependencies" : [

Dependency

{ "symbol" : "?scenario_start" }
], "threshold" : 1.0, "trigger" :

Trigger

{ "arguments" : [

Symbol filter (for search)

{ "type" : "symbol", "_comment" : "Don't use this Rule if we are actually in a planned scenario", "var" : "thisIsAPlannedScenario", "role" : "excluded", "symbol" : "?scenario_plan_tags" }
,

Tag filter (for search)

{ "type" : "tag", "_comment" : "This matches any unfinished task.", "task_is_finished" : false }
], "deactivate_if" : { "thisIsAPlannedScenario" : ["match"] } }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "disable-hierarchy-for-task-selection-when-task-is-chosen", "name" : "disable-hierarchy-for-task-selection-when-task-is-chosen", "confidence" : 1000, "trigger" :

Trigger

{ "arguments" : [

Option filter (for search)

{ "type" : "option", "var" : "optionToDeactivate", "role" : "optional", "created_by" :

Rule filter

{ "type" : "rule", "role" : "optional", "rule" : "Enable-hierarchy-for-task-selection-root" }
}
] }
, "actions" : [

Loop over objects

{ "type" : "loop", "for" : "theTagToNullify", "in" :

Tag filter

{ "type" : "tag", "symbol" : "hierarchy_for_task_selection_currently_active" }
, "do" : [

Create a Tag

{ "type" : "create_tag", "symbol" : "!nullify", "arguments" : [

Variable

{ "type" : "variable", "var" : "theTagToNullify" }
] }
] }
,

Create a Tag

{ "type" : "create_tag", "symbol" : "!deactivate_rule_or_option", "arguments" : [

Rule

{ "type" : "rule", "rule" : "Enable-hierarchy-for-task-selection-root" }
] }
,

Conditionally execute actions

{ "type" : "conditional", "if" :

Reference exists Condition

{ "type" : "reference_exists", "exists" : "optionToDeactivate" }
, "then" : [

Create a Tag

{ "type" : "create_tag", "symbol" : "!deactivate_rule_or_option", "arguments" : [

Variable

{ "type" : "variable", "var" : "optionToDeactivate" }
] }
] }
] }
], "existing_variables" : { "thisIsAPlannedScenario" :

Variable

{ "type" : "symbol" }
, "disable-hierarchy-for-task-selection-when-task-is-chosen" :

Variable

{ "type" : "option" }
} }

Rule

{ "name" : "Disable-hierarchy-for-task-selection-when-task-is-chosen", "description" : "If a task_ has been defined, nullifies hierarchy_for_task_selection_currently_active.

Also deactivates Enable-hierarchy-for-task-selection-root and the Option created by it.

This ensures that the hierarchy of features is no longer displayed to the user when there already is a task_ being worked on."
, "dependencies" : [

Dependency

{ "symbol" : "?scenario_start", "weight" : 1.0, "comment_filter" : null }
], "threshold" : 1.0, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [

Symbol filter (for search)

{ "type" : "symbol", "_comment" : "Don't use this Rule if we are actually in a planned scenario", "var" : "thisIsAPlannedScenario", "role" : "excluded", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "?scenario_plan_tags" }
,

Tag filter (for search)

{ "type" : "tag", "_comment" : "This matches any unfinished task.", "var" : null, "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : null, "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : false, "arguments" : {} }
], "deactivate_if" : { "thisIsAPlannedScenario" : ["match"] } }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "disable-hierarchy-for-task-selection-when-task-is-chosen", "name" : "disable-hierarchy-for-task-selection-when-task-is-chosen", "description" : null, "confidence" : 1000, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [

Option filter (for search)

{ "type" : "option", "var" : "optionToDeactivate", "role" : "optional", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" :

Rule filter

{ "type" : "rule", "var" : null, "role" : "optional", "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "is_the_current_rule" : null, "deactivated" : null, "rule" : "Enable-hierarchy-for-task-selection-root" }
, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "is_the_current_option" : null, "deactivated" : null, "name" : null }
], "deactivate_if" : {} }
, "display" : null, "actions" : [

Loop over objects

{ "type" : "loop", "for" : "theTagToNullify", "in" :

Tag filter

{ "type" : "tag", "var" : null, "role" : "required", "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : "hierarchy_for_task_selection_currently_active", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
, "do" : [

Create a Tag

{ "type" : "create_tag", "var" : null, "symbol" : "!nullify", "comment" : null, "weight" : null, "arguments" : [

Variable

{ "type" : "variable", "nullable" : false, "var" : "theTagToNullify" }
], "mark_with" : [] }
] }
,

Create a Tag

{ "type" : "create_tag", "var" : null, "symbol" : "!deactivate_rule_or_option", "comment" : null, "weight" : null, "arguments" : [

Rule

{ "type" : "rule", "nullable" : false, "rule" : "Enable-hierarchy-for-task-selection-root" }
], "mark_with" : [] }
,

Conditionally execute actions

{ "type" : "conditional", "if" :

Reference exists Condition

{ "type" : "reference_exists", "exists" : "optionToDeactivate" }
, "then" : [

Create a Tag

{ "type" : "create_tag", "var" : null, "symbol" : "!deactivate_rule_or_option", "comment" : null, "weight" : null, "arguments" : [

Variable

{ "type" : "variable", "nullable" : false, "var" : "optionToDeactivate" }
], "mark_with" : [] }
], "else" : [] }
] }
], "existing_variables" : { "thisIsAPlannedScenario" :

Variable

{ "type" : "symbol", "value" : null }
, "disable-hierarchy-for-task-selection-when-task-is-chosen" :

Variable

{ "type" : "option", "value" : null }
} }

all versions of this Rule:

Version 14

Version 13 (deleted)

Version 12 (deleted)

Version 11 (deleted)

Version 10 (deleted)

Version 9 (deleted)

Version 8 (deleted)

Version 7 (deleted)

Version 6 (deleted)

Version 5 (deleted)

Version 4 (deleted)

Version 3 (deleted)

Version 2 (deleted)

Version 1 (deleted)