You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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 _Appfire_ ,
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".