Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

How do I access user profile data in automation

I’m trying to set up an automation that uses an issue creator’s department (from their profile) to set a custom field but can’t seem to get it working. 
So far I’ve tried a bunch of smart tags in the json such as {{reporter.department}} and it shows success in the audit but clearly the tag is wrong as it’s still blank in the target field.

any help would be greatly appreciated 

1 answer

1 accepted

1 vote
Answer accepted
Marini Marini
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 21, 2022 • edited

Hi @Michael Wood 

I don't think you can access the Reporter's profile from the Automation Issue Smart Value. The user profile is not stored in an issue.

I found the Cloud User Management REST API, Get Profile. But, the user who executes the REST API must have permission to update and deactivate the accounts owned by your organization. So, before you try the above REST API:

  • You must be the Organization Admin of the instance
  • You must claim the domain
  • Once the claim is successful, you will be able to manage all Atlassian accounts under the claimed domain
  • Then, you will have the permission to run the Jira User Management REST APIs
  • Automation also has a rule to "Send web request". So, you can use the REST API and process the response accordingly in the automation rules.

I hope the above answer helps!

Regards,

Marini

@Marini Marini This worked a treat. The only issue I encountered was with the documentation for smart fields. 

The docs stated to use {{reporter.accountID}} but it actually has to be {{issue.reporter.emailAddress}} on this Link 

 

Thank you for your response, this has been causing me a bit of frustration and this was easy to do with your answer

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events