Userpicker field, Smartvalue to get ID from Webhook

Christian February 18, 2025

Hi together,

i want to have the following automation to work:

When: Trigger
Then: Webhook (GET) on specific Jira User
And: Action -> Edit Issue

The Edit Issue part 1 Works and looks like this: 

Approvers: {{webhookResponse.body.name}}

It successfuly edits the description of the issue and resolves the smartvalue into a name. So we successfuly get "Approvers: John Doe"

The Edit Issue Part 2 fails:

Here i want to have the same user, but into a User Picker Custom Field called "Approver".
This stays empty all the time. I think it is because the Name comes back with a space in between First and Last Name.

Any tips? Can i provide more information?

Thanks
Chris

1 answer

0 votes
Aaron Pavez _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 18, 2025

HI @Christian 

If you log the reply, what do you get? use log action to check what you get.

Seems the webhook response changed. We had this issue with an automation we used.

Use this as the body for the field:

{
"fields": {
"reporter": {{webhookResponse.body.accountId.asJsonObject("id")}}
}
}

That will get the name from the account ID.

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12.15
TAGS
AUG Leaders

Atlassian Community Events