Creating a call to action to open key dates

Use this snippet to create a call to action on your task that opens up the key dates blade for you piece of work.

ctx.sharedoId should be set to the id of the piece of work you want to open.


   var action1b = actions.sharedo.BuildActionPlanItem() 

            .WithDescription("Confirm limitation date is correct") 

            .WithOrder(10)

            .AddCheckbox() 

            .MarkRequired()

            .WithCallToAction 

             ( 

                  actions.sharedo.BuildCallToAction() 

                  .WithDisplay("Key facts", "fa-check", "btn-success") 

                  .WithCommandForSharedo 

                ( 

                    "edit-key-dates",

                    ctx.sharedoId 

                ) 

                .Build() 

            ) 

.Build();