Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In Jira, it's possible to set you can configure default values for your fields. In Cloud instances, however, this operation is a bit trickier due to the rendering issues related to the custom field type of Multi-Level Cascading Select, not fully supported on any screen. When creating an issue, the field will automatically be populated with the value previously selected. Setting a default value for a Multi-Level Cascading Select field in Cloud instances can be more challenging compared to Data Center instances. This is due to rendering limitations associated with the MLCS custom field type, which is not fully supported across all screens.

To set a default value, these are the steps you need to follow:

  1. Get the value of the options you want to set as default.

    1. In the MLCS Cloud app, right-click on a single option and click “inspect”.

    2. Find the <li> element and copy its id:

      image-20241119-122533.png
  2. Go to the “Edit default value” page (Issues → Custom fields → Context and default value → Edit default value).

    image-20241119-124133.png
  3. In the text area where you’re asked to provide the default values, paste the following:

    Code Block
    languagejson
    {
        "lv0": {
            "label": "1",
            "value": "8c371a3c6af7"
        }, 
        "lv1": {
            "label": "1.2", 
            "value": "06fe711b8ba8"
        }
    }
    1. lv(n) represents the level of the option, starting from 0 for root options. Each child option increments the level by one, indicating its position in the hierarchy. There is no limit to the levels of options you can set as default value.

    2. Label is the name of your option. Change it accordingly.

    3. Value is the option ID that you have retrieved in point 1. Update the value with the ID.

  4. Click “Set default“.