Hi all,
I've been trying to troubleshoot and find out why my Automation rule (which looks simple) is just not returning the accountID from the web request. The objective is to set the reporter from a short text field containing the "display name - email" of a user.
It seems that Jira doesn't find any users to correlate from that web request to insert it in Reporter.
I've tested the request with postman and it returns me informations just fine.
I've also added some return logs within the rule and there's nothing in the response body. Hence this, the service account always ends up as the Reporter.
Hi @Daniel Tardif Hernandez -- Welcome to the Atlassian Community!
The image of the audit log details you show is not for the rule image you show. There are no Log actions in the rule, and so you may be comparing two different things.
Regardless of that...
The audit log shows the condition check on {{webhookResponse.body.accountId}} is not empty is not passing. And so it is likely either:
Which Jira REST API endpoint are you calling? Is it this one: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get
Also I recommend writing the complete URL used for the Send Web Request action to the audit log. That will confirm it is well-formed, and matches what you tried with examples in Postman.
Kind regards,
Bill
When you send a web request from an automation, the request will not have authentication credentials. That means a web request to Jira (or Confluence) will usually fail because of an authentication error. This is also seen in your log.
I don't know an alternative solution to your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @marc -Collabello--Phase Locked- ,
Thanks for your input into this, I've resolved the authentication issue and added a log action. It looks like it extracts the email correctly but the response body is still empty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @marc -Collabello--Phase Locked- @Bill Sheboy
Thanks for your answers, encoding my token to Base64 then applying it resolved the issue :) I just created the token then copy pasted it there, hence the authentication failing
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.