Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-1396

Conditional questions in questionnaires don't work like expected with archetypes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTA 7.0.0
    • MTA 7.0.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      I tried assessing an archetype using the attached questionnaire. Conditional questions in questionnaires don't work like expected with archetypes.

      The conditional questions worked fine while assessing applications . The questions that were supposed to be included were included and the questions that were supposed to be excluded were excluded.

      Version-Release number of selected component (if applicable):

      MTA 7.0 

      How reproducible:

      Always

      Steps to Reproduce:
      1. Create an archetype with the 'Tag1' tag.
      2. Assess it with the attached questionnaire .

      Actual results:

      Here's a snippet from the questionnaire .
      1) The 'What is your favorite color?' question should be included if the archetype is tagged 'Tag1'. But, it's not included.
      2) The 'What is your favorite sport?' question should be excluded if the archetype is tagged 'Tag1'. But, it's not excluded.

      name: Test questionnaire 2
      description: This is a sample questionnaire in YAML format
      required: true
      sections:

      • order: 1
        name: Section 1
        questions:
      • order: 1
        text: What is your favorite color?
        explanation: Please select your favorite color.
        includeFor:
      • category: Category1
        tag: Tag1
        excludeFor: []
        answers:
      • order: 1
        text: Red
        risk: red
        rationale: Red is a nice color.
        mitigation: No mitigation needed.
        applyTags: []
        autoAnswerFor: [ { category: Category1, tag: Tag1 }

        ]
        selected: false

      • order: 2
        text: Blue
        risk: green
        rationale: Blue is a calming color.
        mitigation: No mitigation needed.
        applyTags: []
        autoAnswerFor: []
        selected: false
      • order: 2
        text: What is your favorite sport?
        explanation: Please select your favorite sport.
        excludeFor:
      • category: Category1
        tag: Tag1
        answers:
      • order: 1
        text: Soccer
        risk: red
        rationale: There are other sports?
        mitigation: Beware of crunching tackles. High risk of injury.

      Expected results:

       Conditional questions in questionnaires should work properly when questionnaires are used with archetypes.

      Additional info:

              slucidi@redhat.com Samuel Lucidi
              rhn-support-nachandr Nandini Chandra
              Nandini Chandra Nandini Chandra
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: