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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,509
Community Members
 
Community Events
184
Community Groups

JMWE Post function conditional execution when reporter is not in group

Hi,

I set a Security Level by default and I want to edit the field and change it to None when reporter is not in group

I'm stucked trying to find my correct my Nunjucks code

 

I've tried:

{% if not currentUser | isInGroup("xxx-xxx-users") %} {% endif %} 

 

1 answer

1 accepted

1 vote
Answer accepted
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.
Mar 31, 2021

Hi @Carolina SILVA ,

it's actually easier to use the Clear Fields post-function together with Conditional Execution:

{{ not (currentUser | isInGroup("xxx-xxx-users")) }}

However, you also need to make sure the atlassian-addons-project-access project role belongs to all security levels.

thanks DAvid

my mistake I need to focus on who the reporter is to clear or not the Security field

I tried:

{{ not (reporter | isInGroup("xxx-xxx-users")) }}

result is always true when I test my template, which is wrong ;-(

Do you have any clue?

 

PS I also checked that atlassian-addons-project-access project role belongs to all security levels.

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.
Mar 31, 2021

To access the Reporter field, you need

issue.fields.reporter

Thanks a lot David, my tests are correct, I'll continue my change

You saved my night for sure, Go live is tomorrow :-)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events