Hello everyone,
I’m currently stuck while trying to build an automation rule in Jira using Rovo and would really appreciate your help.
Goal:
Automatically assign a work item to a user based on an email address stored in a custom field (customfield_10145).
What I tried (based on Rovo guidance):
Create variable for email:
{{issue.customfield_10145.trim}}
Send web request:
URL:
https://intersportaustria.atlassian.net/rest/api/3/user/search?query={{emailAddress.urlEncode}}
Method: GET
Headers:
Accept: application/json
Authorization: Basic (base64 email)
Option enabled: Delay execution until response is received
Create variable for accountId:
{{webhookResponse.body.[0].accountId}}
Edit issue → Assignee using the accountId
Troubleshooting steps:
To debug, I added comments in the rule:
After email variable:
Debug email: {{issue.customfield_10145.trim}}
After web request:
Debug: webhookResponse status = {{webhookResponse.status}}
Debug: webhookResponse body = {{webhookResponse.body}}
Any guidance or working examples would be highly appreciated!
Thanks a lot!
When would this action take place, on creation?
Can you show your rule and details of the actions in the rule and the audit log.
But the main issue is the smart value you are using.
Using a web request action in the rule, the smart value to use is {{webResponse.body}}
Yes, and...to the suggestions from @Marc -Devoteam-
Your created variable appears to be named emailAddress, and I suggested using a variable named the same as existing smart values can cause people and rules to become confused. Perhaps always add a prefix to variable names to avoid collisions, such as: varEmailAddress.
Kind regards,
Bill
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.