Hi,
we're having problems with this piece of the documentation at https://developer.atlassian.com/cloud/compass/config-as-code/structure-and-contents-of-a-compass-yml-file/
> For single_select and multi_select fields, you can also refer to their displayValue
instead of their value
. This display value must exactly match the text value of that option.
We use display values and we are getting the attached error.
Can you advise, please?
Thank you!
Hi, @martin.wirth !
It doesn't look like the error that you intended to attach was included, and without seeing it, it's complicated to determine what could be happening in your specific situation.
Other than that, the instructions in the linked document make sense to me, understanding that:
Multi selects take an array of display values (in YAML, either an array, or a child indented list of items), while single selects take a single value.
For example, after defining a custom field named "Test multi select", that applies to all Service-type components and that has a possible option with display value "Option one", I can use the following compass.yml snippet to be applied:
typeId: SERVICE
...
customFields:
- name: 'Test multi select'
type: multi_select
displayValue:
- 'Option one'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.