Title: Difficulty Using Multi-Select Field in Comments with JMWE Plugin
Hello, community!
I am facing a challenge when trying to use a multi-select field in comments in Jira, specifically with the JMWE plugin.
Although the field is configured correctly and contains values, I am unable to access it as desired when adding comments. Here are some examples I tried, but with no success:
Has anyone encountered this issue, or could anyone guide me on how to use multi-select fields in comments with JMWE? I appreciate any help in advance!
BR PT
Olá, comunidade! Estou enfrentando um desafio ao tentar usar um campo de múltipla escolha em comentários no Jira, especificamente com o plugin JMWE.
Embora o campo esteja configurado corretamente e contenha valores, não consigo acessá-lo da maneira desejada ao adicionar comentários.
Aqui estão alguns exemplos que tentei, mas sem sucesso:
Esses são os motivos: {{issue.customfield_10105.get(0).value}}
Esses são os motivos: {{issue.customfield_10105.join(", ")}}
Alguém já passou por isso ou poderia me orientar sobre como utilizar campos de múltipla escolha em comentários usando o JMWE? Agradeço antecipadamente pela ajuda! faça esse mesmo texto em ingles sem mudar o contexto
{% set multiValueField = issue.fields.customfield_10105 %}
{% if multiValueField %}
{% set reasons = "" %}
{% for option in multiValueField %}
{% if option.value %}
{% if reasons %}
{% set reasons = reasons + ", " + option.value %}
{% else %}
{% set reasons = option.value %}
{% endif %}
{% endif %}
{% endfor %}
Esses são os motivos: {{ reasons }}
{% else %}
Não há motivos disponíveis.
{% endif %}
CONSEGUI DESSA FORMA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.