Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Set Issue field JMWE

Set Issue Field.JPG

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?

2 comments

David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 25, 2023

Hi @Rizky.Tuasikal ,

instead of using Conditional Execution, you can simply use a calculated value for the IT PM Level field. For example:

{% switch issue.fields["IT Project Manager"].accountId -%}
{%- case 'accountId:123445' -%}
Junior
{%- case 'accountId:67890' -%}
Senior
{%- endswitch %}

Also, I noticed that your initial approach was wrong: the template for the value of the field was returning either true or false, not Junior as I expect you wanted.

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

David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 26, 2023

Almost. Just remove the | between the two case statements. 

Like Rizky.Tuasikal likes this

project scale.JPG

 

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

@David Fischer _Appfire_ 

David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 26, 2023

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 %}
Like Rizky.Tuasikal likes this

Hi @David Fischer _Appfire_ 

 

thank you so much for your help.. it works perfectly

God bless you

David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 27, 2023

Hi @Rizky.Tuasikal 

I'm glad it works. 

Would you mind "accepting" the answer so that other community members can  find it? Thanks. 

Hi @David Fischer _Appfire_

sorry I didn't find a way to "accepting" an answer

 

I don't see any button to "accept" your answer

David Fischer _Appfire_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 31, 2023

Oh, right, that's because you created a "Discussion" instead of a "Question" so there is no notion of "Answer", only "Comments".

Comment

Log in or Sign up to comment