Can the field "IT PM Level" be determined by the contents of the field "IT Project Manager"?
for example, if I choose user A, then the value of the field "IT PM Level" will be Junior
and if I choose user B, then the value of the field "IT PM Level" will be Senior
How do I get such results?
Hi @David Fischer ,
thanks for your help, it works!
more question,
if there is more than 1 user (user A, B, C) = Junior
can you show me the query?
sorry, this is the first time I learned this
Almost. Just remove the | between the two case statements.
if there are conditions like this, how does the query be?
example:
IT PM Level = Senior & Project Scale = Large
it will be : Project Scale - PM (%) = 50
You can use embedded switch statements:
{% switch issue.fields["PM Level"].value -%}
{%- case 'IT PM Senior' -%}
{%- switch issue.fields["Project Scale"].value -%}
{%- case 'Large' -%}
50
{%- case 'Medium' -%}
25
{%- endswitch -%}
{%- case 'IT PM Junior' -%}
{%- switch issue.fields["Project Scale"].value -%}
{%- case 'Large' -%}
40
{%- case 'Medium' -%}
20
{%- endswitch -%}
{%- endswitch %}
I'm glad it works.
Would you mind "accepting" the answer so that other community members can find it? Thanks.
sorry I didn't find a way to "accepting" an answer
I don't see any button to "accept" your answer
Oh, right, that's because you created a "Discussion" instead of a "Question" so there is no notion of "Answer", only "Comments".
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.