{"id":6265,"date":"2022-03-17T07:47:17","date_gmt":"2022-03-17T07:47:17","guid":{"rendered":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/?post_type=article&#038;p=6265"},"modified":"2024-10-15T05:42:15","modified_gmt":"2024-10-15T05:42:15","slug":"how-to-create-a-business-rule","status":"publish","type":"article","link":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/article\/how-to-create-a-business-rule\/","title":{"rendered":"How to Create a Business Rule"},"content":{"rendered":"<p>Start with the video first to get a better grasp of the topic!<br \/>\n<iframe loading=\"lazy\" title=\"Learn to Work with Business Rules Feature\" src=\"https:\/\/player.vimeo.com\/video\/815209701?dnt=1&amp;app_id=122963\" width=\"500\" height=\"281\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write\"><\/iframe><\/p>\n<table style=\"line-height: 10px; height: 26px; width: 99.8764%; border-collapse: collapse; background-color: #f7f7f7;\">\n<tbody>\n<tr style=\"height: 108px;\">\n<td style=\"width: 100%; height: 26px;\">\n<p style=\"text-align: left;\"><strong>Skip Ahead to:<\/strong><\/p>\n<p style=\"text-align: left;\"><a href=\"#SingleConditionAction\">Business Rule with Single Condition and Action<\/a><\/p>\n<p style=\"text-align: left;\"><a href=\"#ConditionsActions\">Business Rule with Multiple Conditions or Actions<\/a><\/p>\n<p style=\"text-align: left;\"><a href=\"#Executing\">Executing a Business Rule Repeatedly (Recurring Business Rules)<\/a><\/p>\n<p style=\"text-align: left;\"><a href=\"#ActivityLog\">Activity Log and Comments Section<\/a><\/p>\n<p style=\"text-align: left;\"><a href=\"#BulkUpdate\">Bulk Update<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><a id=\"SingleConditionAction\"><\/a>Business Rule with Single Condition and Action<\/h2>\n<p>Consider a scenario where a parent card (Epic) is blocked with a condition set on its <b>Size<\/b>\u00a0attribute as XL, then all its child cards (user stories, technical stories, and so on) should be blocked automatically.<\/p>\n<p>This process can be automated easily! Here, blocking the parent card (epic) having the Size attribute set as XL is the <b>condition<\/b>.<\/p>\n<p>When this condition is fulfilled, a Business Rule (let\u2019s say &#8211; Block Child Cards upon Blocking of Parent Card) will be\u00a0<b>triggered<\/b> and as a result, all the cards tagged to that epic will be blocked automatically. Here, blocking the child cards is the event.<\/p>\n<p><span style=\"font-weight: 400;\">Please note that you can easily create new Business Rules by copying an existing one using the &#8216;Copy&#8217; feature located in the &#8216;Action&#8217; column on the Business Rules listing page. This feature saves you time and effort by allowing you to quickly duplicate a rule with similar criteria or actions and make any necessary adjustments.<\/span><\/p>\n<h3>Steps to Build Business Rule<\/h3>\n<ul class=\"whs1\" type=\"1\">\n<li class=\"p\">Click the\u00a0<b>Add<\/b>\u00a0button to create a new Business Rule.<\/li>\n<li class=\"p\">The page is divided into two sections. The left section shows a step-by-step visualization of the Business Rule that you are building by adding the details on the right section of the page. <strong>Note:<\/strong> You can expand any of these sections by clicking the small arrow placed in between both these sections as highlighted above.<\/li>\n<li class=\"p\">Add\u00a0<b>Name<\/b>\u00a0and\u00a0<b>Description<\/b>\u00a0to the Rule that would help you to refer whenever a rule gets executed and click\u00a0<b>Next<\/b>.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_rules.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7011 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_rules.jpg\" alt=\"\" width=\"402\" height=\"299\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_rules.jpg 402w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_rules-300x223.jpg 300w\" sizes=\"(max-width: 402px) 100vw, 402px\" \/><\/a><\/p>\n<p>The steps section expands, which includes the 3 stages of your rules as shown below.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_details.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7012 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_details.jpg\" alt=\"\" width=\"403\" height=\"401\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_details.jpg 403w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_details-300x300.jpg 300w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_details-150x150.jpg 150w\" sizes=\"(max-width: 403px) 100vw, 403px\" \/><\/a><\/p>\n<ul class=\"whs1\" type=\"1\">\n<li class=\"p\">In the first stage, you have the option to select the trigger.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/Triggers.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7014 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/Triggers.jpg\" alt=\"\" width=\"389\" height=\"505\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/Triggers.jpg 389w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/Triggers-231x300.jpg 231w\" sizes=\"(max-width: 389px) 100vw, 389px\" \/><\/a><\/p>\n<ul>\n<li>For the first scenario, as we want the Business rule to trigger when the card is blocked, select <b>Card is blocked<\/b>\u00a0trigger.<\/li>\n<li>Select the <b>Epic<\/b>\u00a0card type, and click\u00a0<b>Next<\/b>.<\/li>\n<li>Now, add the conditions in the second stage of the rule.<\/li>\n<li>Select the\u00a0<b>Data Condition<\/b>\u00a0that expands the right section as shown below.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_block.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7015 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_block.jpg\" alt=\"\" width=\"748\" height=\"98\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_block.jpg 748w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_block-300x39.jpg 300w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/a><\/li>\n<\/ul>\n<ul class=\"whs1\" type=\"1\">\n<li class=\"p\">For our scenario, select the Size attribute which \u201cis\u201d set as \u201cXL\u201d and click\u00a0<b>Next<\/b>. <strong>Note:<\/strong> The \u201c{\u201d open bracket, \u201c}\u201d close bracket, \u201cOR\u201d, \u201cAND\u201d operators, available on the screen are explained in the second scenario, where we are adding multiple conditions. For the current scenario, these options are not required.<\/li>\n<li class=\"p\">Now, you need to set the action that needs to be performed once the trigger and condition are full-filled.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_action.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7016 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_action.jpg\" alt=\"\" width=\"748\" height=\"357\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_action.jpg 748w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_action-300x143.jpg 300w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/a><\/li>\n<li class=\"p\">Select the\u00a0<b>Action<\/b> on the right section that expands the right section as shown below.<\/li>\n<li class=\"p\">For our scenario, we want to have the \u201cChild Card\u201d context to set the action as \u201cBlock Card\u201d add \u201cInsufficient Information\u201d as the Blocking Reason, and click <b>Save<\/b>\u00a0or\u00a0<b>Next<\/b> to set the frequency. In this scenario, we are not setting a recurring trigger.<\/li>\n<li class=\"p\">In case, if you want to make any changes to the configuration in Triggers or any other step, you can click on the visual map or the steps in the left part of the Business Rules screen, which will navigate you to the specific configuration that you select.<\/li>\n<li class=\"p\">Lastly, if you want to set the frequency, select the frequency stage.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_freq.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7017 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_freq.jpg\" alt=\"\" width=\"743\" height=\"275\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_freq.jpg 743w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_freq-300x111.jpg 300w\" sizes=\"(max-width: 743px) 100vw, 743px\" \/><\/a><\/li>\n<li class=\"p\">In our scenario, we are not selecting the next step of frequency and so the frequency will be kept\u00a0<b>Off<\/b>\u00a0for this Business Rule. Finally, click\u00a0<b>Save<\/b>\u00a0and navigate back to the Business Rules listing page.<\/li>\n<li class=\"p\">The newly created Business Rule gets listed on the listing page. By default, the rule is enabled. If you want to edit or make any changes to the rule, click the <b>Edit<\/b>\u00a0icon. Also, the frequency is kept\u00a0<b>Off<\/b>.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR-Edit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-14549\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR-Edit.png\" alt=\"\" width=\"854\" height=\"480\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Next, let\u2019s check the <strong>E<\/strong><b>xecution<\/b> part of the above rule on the Execution board of your project.<\/p>\n<ol class=\"whs1\" type=\"1\">\n<li class=\"p\">Consider we have an Epic card EPC236 having two user stories linked to UST1419 and UST1420.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_ust.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7019 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_ust.jpg\" alt=\"\" width=\"472\" height=\"375\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_ust.jpg 472w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_ust-300x238.jpg 300w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><\/a><\/li>\n<li class=\"p\">The Epic card has the Size attribute set to \u201cXL\u201d.<\/li>\n<li class=\"p\">Now, once you block this epic card, you will be able to see the linked child cards UST1419 and UST1420 get blocked.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_ust_blocked.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7020 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_ust_blocked.jpg\" alt=\"\" width=\"457\" height=\"366\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_ust_blocked.jpg 457w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_ust_blocked-300x240.jpg 300w\" sizes=\"(max-width: 457px) 100vw, 457px\" \/><\/a><\/li>\n<\/ol>\n<p><b>NOTE<\/b>: To unblock all child cards at one go, you can create a new rule and perform similar actions as explained above. Use the <b><a id=\"ConditionsActions\"><\/a>Card is unblocked<\/b> trigger, and select the same card type EPIC, having the same condition, which is the <b>Size<\/b>\u00a0attribute set as\u00a0<b>XL<\/b>. In this case, the action will be to unblock all the child cards.<\/p>\n<h2><a><\/a>Business Rule with Multiple Conditions or Actions<\/h2>\n<p>A Business Rule can have multiple conditions or actions in it. To understand the configuration of a multi-condition \/ multi-action rule, let&#8217;s consider another scenario.<\/p>\n<p>For example, if the Module of a defect is ECR Framework and the priority is critical, then the card should be assigned to a specific team member (having expertise in that field) and also should be moved to a specific column in the Execution Board.<\/p>\n<p>So for this Business Rule, we have multiple conditions and actions as shown below.<\/p>\n<p><b>Conditions<\/b><\/p>\n<p>When Module = Product Details and Priority = Critical OR Priority = High<\/p>\n<p class=\"whs15\"><strong>Actions<\/strong><\/p>\n<p>Set Card Owner = Khushboo, Team = Magic Squad, lane = Expedite, and Column = Ready<\/p>\n<h3>Steps to Build this Business Rule<\/h3>\n<ol class=\"whs1\" type=\"1\">\n<li class=\"p\">In the\u00a0<b>Business Rules<\/b>\u00a0screen, click the\u00a0<b>Add<\/b>\u00a0button to create a new Business Rule.<\/li>\n<li class=\"p\">Under the\u00a0<b>Rule Details<\/b>, enter the\u00a0<b>Name<\/b>\u00a0and\u00a0<b>Description<\/b>\u00a0for the Rule.<b><br \/>\nNote<\/b>: The name of the Rule should define the condition and the action of the rule so that by seeing the Rule in the Activity log, Comments section, or notification for a workitem, you will understand the possible changes in the workitems.<\/li>\n<li class=\"p\">Click\u00a0<b>Next<\/b>\u00a0and click\u00a0<b>Event triggers<\/b> to select the trigger\u00a0for your Rule. For our scenario we want the card to be updated so the trigger would be the\u00a0<b>Update Card<\/b>.<\/li>\n<li class=\"p\">Select the\u00a0<b>Defect<\/b>\u00a0Card Type on which the condition will be checked and fulfilled.<\/li>\n<li class=\"p\">Click\u00a0<b>Next<\/b>\u00a0and click\u00a0<b>Data Condition<\/b> to define the condition for the Business Rule.<\/li>\n<li class=\"p\">The\u00a0<b>Data Condition<\/b>\u00a0expands towards the right side and covers the full screen.<\/li>\n<li class=\"p\">Since we have two combinations of conditions with AND and OR operators, we will use curly brackets ({) to define the conditions as shown below &#8211;\n<ol class=\"whs16\" type=\"a\">\n<li class=\"p\">Select \u2018{{\u2018 from the first drop-down list,\u00a0<b>Attribute<\/b>\u00a0as \u2018Module\u2019,\u00a0<b>Condition<\/b>\u00a0as \u2018is\u2019, \u00a0<b>Module Name<\/b>\u00a0as \u2018Product Details\u2019.<\/li>\n<li class=\"p\">Select \u2018}\u2019 in front of the drop-down list<\/li>\n<li class=\"p\">Click the\u00a0<b>Add<\/b>\u00a0icon and select the\u00a0<b>And<\/b>\u00a0operator from the drop-down list before the\u00a0<b>Add<\/b>\u00a0icon.<\/li>\n<li class=\"p\">Select \u2018{\u2019 in front of the drop-down list.<\/li>\n<li class=\"p\">Select\u00a0<b>Attribute<\/b>\u00a0as \u2018Priority\u2019,\u00a0<b>Condition<\/b> as \u2018is\u2019, and\u00a0<b>Priority<\/b>\u00a0as \u2018Critical\u2019. Select the \u2018}\u2019 from the drop-down since the first condition is completed.<\/li>\n<li class=\"p\">Click the\u00a0<b>Add<\/b>\u00a0icon and select the\u00a0<b>Or<\/b>\u00a0operator from the drop-down list before the\u00a0<b>Add<\/b>\u00a0icon to add the second condition.<\/li>\n<li class=\"p\">Select\u00a0<b>Attribute<\/b>\u00a0as \u2018Priority\u2019,\u00a0<b>Condition<\/b> as \u2018is\u2019, and\u00a0<b>Priority<\/b>\u00a0as \u2018High\u2019.<\/li>\n<li class=\"p\">Since our condition is completed, select the \u2018}}\u2019 from the drop-down to close the second condition as well as the entire condition.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7021 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad.jpg\" alt=\"\" width=\"850\" height=\"349\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad.jpg 850w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad-300x123.jpg 300w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad-768x315.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a> <strong>Note:<\/strong> You can add or delete any condition by clicking the Add or Delete icon at the end of every condition row. If you add a new row, you have to define the And\/Or operator for the new condition.<\/li>\n<\/ol>\n<\/li>\n<li class=\"p\" value=\"8\">Click\u00a0<b>Next<\/b>\u00a0and click\u00a0<b>Actions<\/b>\u00a0to define the actions for our Rule as shown below.\n<ol class=\"whs16\" type=\"a\">\n<li class=\"p\">Select \u00a0<b>Context<\/b>\u00a0as \u2018Current Card\u2019,\u00a0<b>Action<\/b>\u00a0as \u2018Update Card\u2019,\u00a0<b>Card Type<\/b>\u00a0as \u2018Defect\u2019,\u00a0<b>Attribute<\/b>\u00a0as \u2018Card Owner\u2019, and\u00a0<b>Card Owner Name<\/b>\u00a0as \u2018Khushbu Kadam\u2019.<\/li>\n<li class=\"p\">Since the context, action, and card type for our action will be the same, you can click the\u00a0<b>Copy Action<\/b> icon on the right side to copy these three values in the new row.<\/li>\n<li class=\"p\">In the next row\/action, select\u00a0<b>Attribute<\/b>\u00a0as \u2018Team\u2019 and\u00a0<b>Team Name<\/b>\u00a0as \u2018Magic Squad\u2019 and click the\u00a0<b>Copy Action<\/b>\u00a0icon to add a new row.<\/li>\n<li class=\"p\">In the next row, select\u00a0<b>Attribute<\/b>\u00a0as \u2018Lane: Column\u2019 and\u00a0<b>Lane: Column value<\/b> as \u2018Enhancement: Ready\u2019.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7022 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad2.jpg\" alt=\"\" width=\"850\" height=\"356\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad2.jpg 850w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad2-300x126.jpg 300w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/magicsquad2-768x322.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li class=\"p\" value=\"9\">Since we don&#8217;t want this Business Rule to be run after a specific period of time with\u00a0<b>Frequency<\/b>, click\u00a0<b>Save<\/b>\u00a0to save this Business Rule.<\/li>\n<li class=\"p\">The Business Rule is created successfully and you can see the visualization of the rule on the right side to see the holistic flow of the rule as shown below.<a href=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_flow.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7023 size-full\" src=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_flow.jpg\" alt=\"\" width=\"762\" height=\"653\" srcset=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_flow.jpg 762w, https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-content\/uploads\/2022\/03\/BR_flow-300x257.jpg 300w\" sizes=\"(max-width: 762px) 100vw, 762px\" \/><\/a><\/li>\n<li class=\"p\">Once the Rule is saved, it becomes\u00a0<b>enabled<\/b> by default and will be triggered if the condition is met. You can disable this rule by clicking the\u00a0<b>Enable\/Disable<\/b>\u00a0toggle on the Business Rules screen.<\/li>\n<\/ol>\n<p><b><a id=\"Executing\"><\/a>Note<\/b>: The rule will be saved and work only if all three sections &#8211; Event trigger, Data Condition, and Action are defined and saved in one flow. If any one of them is not available or saved, the rule will not work.<\/p>\n<h2><a><\/a>Executing a Business Rule Repeatedly (Recurring Business Rules)<\/h2>\n<p>In Nimble, you can execute a Business Rule repeatedly and frequently on a fixed date or day of a week\/month\/year without meeting any conditions. This will help you perform repetitive tasks automatically like the generation of a Weekly Status Report on a particular day, updating some information on cards every month or quarter, etc.<\/p>\n<p>To define a recurring rule, you need to specify the time period for the rule to be executed as mentioned in the steps below. For creating a recurring card, you need to define the frequency.<\/p>\n<p>Steps to define a recurring rule:<\/p>\n<ol class=\"whs1\" type=\"1\">\n<li class=\"p\">In the Business Rules screen, click the\u00a0<b>Add<\/b>\u00a0button to create a new Business Rule.<\/li>\n<li class=\"p\">Under the\u00a0<b>Rule Details<\/b>, enter the\u00a0<b>Name<\/b>\u00a0and\u00a0<b>Description<\/b>\u00a0for the Business Rule.<\/li>\n<li class=\"p\">Click\u00a0<b>Next<\/b>\u00a0and click\u00a0<b>Event triggers<\/b>\u00a0to select the\u00a0<b>Create a recurring card<\/b>\u00a0trigger.<\/li>\n<li class=\"p\">Select the\u00a0<b>Card Type<\/b>\u00a0on which the rule will be triggered.<\/li>\n<li class=\"p\">Click\u00a0<b>Next<\/b>\u00a0and click\u00a0<b>Data Condition<\/b> to define the condition for the Business Rule.<\/li>\n<li class=\"p\">The\u00a0<b>Data Condition<\/b>\u00a0expands towards the right side and covers the full screen.<\/li>\n<li class=\"p\">In the\u00a0<b>Data Condition<\/b>, either select the existing card by entering the 3 letters of that card or create a new card by selecting the\u00a0<b>Create a new recurring card<\/b>\u00a0option from the drop-down.<\/li>\n<li class=\"p\">With this, a new card will be created with the name you have given here after the defined time like 3 days, 1 week, etc.<\/li>\n<li class=\"p\">Click\u00a0<b>Next<\/b>\u00a0to select the action to be performed on the selected card type when the rule is triggered.<\/li>\n<li class=\"p\">If you have selected an existing card, then it will by default show the mandatory attributes (<b>Name, Card Owner, Board Lane: Board Column<\/b>) of that card and its values. It means when the rule will be triggered, a new card will be created with the given name and attributes set in the Action.<b><br \/>\nNote<\/b>: If\u00a0<b>Name<\/b>,\u00a0<b>Card Owner<\/b>, <b>Board <\/b><b>Lane: Board Column<\/b>\u00a0are selected as mandatory attributes on a card then these attributes will be pre-populated in the Action screen.<\/li>\n<li class=\"p\">If you have selected the\u00a0<b>Create a new recurring card<\/b>\u00a0option in the\u00a0<b>Data Condition<\/b>\u00a0screen, then you can select the new attributes and values for the card that will be created on the set date\/day (when the rule will be triggered.)<\/li>\n<li class=\"p\">Click\u00a0<b>Next<\/b>\u00a0to select the frequency for the Business Rule.<\/li>\n<li class=\"p\">In the\u00a0<b>Frequency<\/b>\u00a0screen, select the frequency when the rule should be executed as described here.<b><br \/>\nNote<\/b>: The recurring rule gets executed on the defined day\/date no matter what, so you won\u2019t get the\u00a0<b>Frequency Enabled<\/b>\u00a0option for a recurring rule. While in a non-recurring rule (with frequency enabled, you get the option to turn On or Off the frequency as per your business need.)<\/li>\n<li class=\"p\"><a id=\"ActivityLog\"><\/a>Click\u00a0<b>Save<\/b>. The Business Rule is created successfully and you can see the visualization of the rule on the right side to see the holistic flow of the Business Rule.<\/li>\n<\/ol>\n<h2>Activity Log and Comments Section<\/h2>\n<p>When a Business Rule is triggered on a card and performs the defined actions on it then the execution of the Business Rule is recorded in the activity log of the workitem to let the user know about the execution of the rule.<\/p>\n<p>Also, if a Business Rule is triggered but the given action is not performed for any reason (like if the attributes on the card or value in the attribute of the card are invalid OR when a Business Rule is trying to block an already blocked card) then comment for the same is published in the Comments section of that card. The comment includes the name of the rule and the reason why <a id=\"BulkUpdate\"><\/a>the Business Rule couldn\u2019t be performed.<\/p>\n<h2>Bulk Update<\/h2>\n<p>If you do any bulk update on your Execution Board, you will receive an upfront notification on the number of Business Rules that have been executed. On clicking the snack bar notification, a pop-up window opens that shows the Item ID, the Title of the <a id=\"VideoReference\"><\/a>cards, and the Business Rule executed on that card.<\/p>\n<div class=\"helpful-block-content wth-theme-thumbs\" data-title=\"\" >\n<ul>\n<li><span class=\"wth-title\">Was this helpful?<\/span><\/li>\n<li><a data-post=\"6265\" data-post-url=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/article\/how-to-create-a-business-rule\/\" data-post-title=\"How to Create a Business Rule\" data-response=\"1\" href=\"#\" class=\"wth-green-btn icon-thumbsup\">Yes<\/a>&nbsp; &nbsp;<a data-response=\"0\" data-post=\"6265\" data-post-url=\"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/article\/how-to-create-a-business-rule\/\" data-post-title=\"How to Create a Business Rule\" href=\"#\" class=\"wth-red-btn icon-thumbsdown\">No<\/a><\/li>\n<\/ul>\n<\/div>","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","multi-rating":{"mr_rating_results":[]},"_links":{"self":[{"href":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-json\/wp\/v2\/article\/6265"}],"collection":[{"href":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-json\/wp\/v2\/comments?post=6265"}],"version-history":[{"count":28,"href":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-json\/wp\/v2\/article\/6265\/revisions"}],"predecessor-version":[{"id":19531,"href":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-json\/wp\/v2\/article\/6265\/revisions\/19531"}],"wp:attachment":[{"href":"https:\/\/www.nimblework.com\/knowledge-base\/nimble\/wp-json\/wp\/v2\/media?parent=6265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}