Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Using Automation for Jira, you can set values of a Multi-Level Cascading Select custom field. As any other third-party custom field, you’ll need to use the “More option” text area to provide the values.

image-20241209-145449.png

This is an example of a JSON object to pass (nested within the “fields“ object, required in Jira Automation).

{
"fields": {
"mlcs_field": "{\"lv0\": {\"label\": \"1\", \"value\": 2}, \"lv1\": {\"label\": \"1.1\", \"value\": 8}}"
}
}

Explanation:

The JSON value passed comprehends the level of options and its labels and values. the escaping \" are necessary for Jira Automation to accept the values (' and ` are not allowed).

mlcs_field: The name of your custom field. Alternatively, you can use the field ID, such as customfield_10036.

label: Text string, represents the name of the option. This is what you will see of the selection made.

value: Number, the ID of the option.

 How to retrieve the value (option ID).

There is a discrepancy in the names used to pass data to Automation and the names used by Jira to manage the MLCS options.

  1. Go to the MLCS Cloud app.

  2. Anywhere on the page, right-click and select “inspect“. This will open the browser inspector.

  3. Go to the Network tab and refresh the page (this is to make sure that the calls will be shown in the Network tab).

  4. Filter the results by “graphql“ as shown in picture:

    image-20241210-105215.png
  5. You’ll find a few “graphql“ requests. The one you’re looking for contains a list of all the available options, nested in “Data → invokeExtension → response”. This is what the response looks like:

    image-20241210-105848.png

Automation for Jira

Graphql request

Value

Id

Label

Value

  • No labels