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
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
Overall, to perform the action of populating a custom field with the reporter's group is usually using a bunch of "if/else" conditions to first catch who the reporter is and then filter what group the reporter belongs to; it can be exhausting to add new components every time a group is created, and this may become impracticable if you have hundreds (or thousands) of groups - there's no scalability here and lots of manual work. Based on this, I'm presenting a simple way to solve this without having so many conditions using automation and a web request.
Overall, it'll look like this:
With the headers:
For Linux/Unix/MacOS use:
echo -n YOUR_EMAIL@example.com:<API_TOKEN_HERE> | base64
Windows 7 and later, using Microsoft Powershell:
$Text = ‘YOUR_EMAIL@example.com:<API_TOKEN_HERE>’ $Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text) $EncodedText = [Convert]::ToBase64String($Bytes) $EncodedText
You just need to run the commands above in the respective terminal of your operating system.
Also, don't forget to add the "Basic" and then the encoded token.
It may seem a bit complicated to set, but you won't need all of the conditions, and you also gain the scalability to create new groups without adding a component.