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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi there,
I got this auto rule set up the idea is to auto-label the Department base on users. Instead of creating multiple rules, does anyone manage to only use one rule to achieve this?
my smart value is like this but did not work out.
{{#user_is_in_group(Contact Center)}}CSC{{/user_is_in_group}}\n{{#user_is_in_group(Fraud Team)}}Fraud{{/user_is_in_group}}\n{{#user_is_in_group(CDD Team)}}CDD{{/user_is_in_group}}\n{{#user_is_in_group(Global Fraud Team)}}FO{{/user_is_in_group}}\n{{#user_is_in_group(Asia Compliance)}}ACOM{{/user_is_in_group}}
Hi @Mimi Peters
I believe you will need to use if/else conditions for each group, as I do not believe there is a rule function as you show for user_is_in_group()
Your rule could be like this:
The limit to this technique is a rule can only have around 60 components, and so if you have more than 20 groups this may not work.
Kind regards,
Bill
Thanks Bill, so you mean I can have do a format like below and just keep add else/if up to 20 combinations?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that sounds correct.
I added a re-fetch after the trigger as a precaution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mimi Peters
I think that you should use conditional logic to achieve what you want:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/
However I haven't tried it out to be honest, but I don't see any reason not to be feasible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex, I have read though but would not know how to create one that works hence posting here. Lots of articles reference is doable but I have not find a way to get it working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.