Task Elements

Task topics explain how to complete a specific procedure or action.

The prereq element contains information the user should know, do, or prepare before beginning the task.

Example: Confirm that you have permission to publish content before starting the deployment task.

  • Verify that the correct branch is selected.
  • Confirm that the publishing profile is available.
  • Review any required approval criteria.

The task element is the top-level element for a task topic. Task topics usually answer “How do I do this?” questions.

This topic demonstrates common task-specific elements such as taskbody, prereq, context, steps, step, cmd, info, stepxmp, stepresult, choices, choicetable, result, tasktroubleshooting, example, and postreq.

Note:

Task topics are commonly used alongside related concept and reference topics to form complete documentation sets.

  1. Use the step element to represent one action in a procedure.

    The info element provides supporting information for a specific step.

    The step appears as one numbered item in the procedure.

The stepsection element provides explanatory content between steps without becoming a numbered step.

  1. Use the cmd element for the main instruction in a step.

    The stepxmp element provides an example for a specific step.

    {
      "profile": "customer-portal",
      "environment": "preview"
    }
  2. Use substeps when one step contains smaller sequential actions.
    1. Use the substep element for a nested action.

      Substeps can include supporting information, examples, and results. This is using the info element.

      Thi is a stepresult for a substep.

    2. Add another substep when the nested action requires more than one part.

    This is a stepexample for a substep.

  3. Required: Set the importance attribute to required for a required step.

    Required steps may be styled with a label or other visual treatment depending on the output configuration.

  4. Optional: Set the importance attribute to optional for an optional step.

    Optional steps may be styled with a label or other visual treatment depending on the output configuration.

  5. Use choices when the user must select one action from multiple options.
    • Select Preview to publish to a preview environment.
    • Select Production to publish to a production environment.
  6. Use choicetable when choices need descriptions.
    Option Description
    Preview Publishes content to a non-public validation environment.
    Production Publishes content to the customer-facing environment.
  7. Use steptroubleshooting to provide troubleshooting guidance for a specific step.

    If the step fails, confirm that the publishing profile exists and that the selected branch has deployable content.

    • Review validation errors.
    • Confirm user permissions.
    • Try the deployment again after correcting the issue.

The result element describes the expected outcome of the task as a whole.

Example: The selected content is published to the target output.

The tasktroubleshooting element provides troubleshooting information for the task as a whole.

Table 1. Task Troubleshooting Examples
Issue Resolution
The deployment fails. Review validation errors and confirm that all referenced assets are available.
The preview output is unavailable. Confirm that the preview environment is active and that the deployment completed successfully.

The example element provides an example of the procedure or expected result.

Deployment Summary
Environment: Preview
Status: Successful
Published Outputs: Portal, PDF

The postreq element describes what the user should do after completing the task.

  • Review the generated output.
  • Confirm that the content appears correctly in the target environment.
  • Notify stakeholders that the task is complete.