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,897
Community Members
 
Community Events
184
Community Groups

Inactive user error from Webhook Data

Hello,

I am working on an automation that will take information from an incoming webhook and create a ticket based off of the payload in the webhook. I am running into issue with the setting a user custom field from the payload. Audit log says the user is inactive when I know the user is active (it is me). 

Here is the log with the payload data and error. Also the smartvalue I am using to set the user field:

screenshot 1.jpgscreenshot 2.jpg

Any help would be greatly appreciated. 

1 answer

0 votes
Bill Sheboy
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.
May 21, 2023

Hi @Simon Shtipelman 

After the privacy changes in Jira for GDPR, I do not believe it is possible to find a user from just their name alone.  Instead you need their account ID value to set an issue field.

Some possible work-arounds would be to:

  • Send the account ID rather than the name with your webhook
  • Using another web request in the rule, call the admin REST API to get all of the users, and then find your desired account ID with a match function
  • Another work-around assumes the user has at least one other issue assigned: using JQL you can search for a user by name as it will get converted to the accountId.  Store the results with a lookup issues action, and then reference one of them to get the id with {{lookupIssues.first.assignee.accountId}}

Kind regards,
Bill

Thanks for the help. I had the external vendor send over the email address of the user instead of the name and that worked without having to send a web request to Jira. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events