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.
Thanks for your suggestion. I implemented the change (in 3 and the comment component) and also updated the variable to varEmailAddress as suggested by @Bill Sheboy in the variable creation component, point 2 and the comment component.
Unfortunately, this did not lead to any improvement—there’s still no value appearing in the comment, nor are there any changes for the assignee.
The audit log labels the action as successful. Any new suggestions based on that feedback? Thanks so much for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What are the details of the edit action?
in the edit action, you can just directly use {{webResponse.body.accountId}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, and...for a bit more context, would you please post images of:
Also, please note well: the section of the log you show includes a Comment on Work Item action before some other steps. Are you trying to reference that added comment in any later rule steps? If so, a Re-fetch Work Item Data action is needed after adding the comment.
Thanks, @Christian Piermayr
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.