Hi all,
I have an issue that I don't know how to tackle:
Goal: When a specific Jira cloud ticket changes status, I want to get a Slack message which will tag a Slack user matching with ticket assignee.
Something like this:
Hello <@{{webhookResponse.records[0].fields.SlackUserID}}>, your issue <{{issue.url}}|{{issue.key}}> has been updated!
Setup: Jira Cloud, Automation rule using webhook, account map in Airtable as SlackUserID, JiraUserEmail. Validation returns 200 OK.
Example json structure:
{ "records": [ { "id": "xxx", "createdTime": "2024-10-14T17:11:34.000Z", "fields": { "JiraUserEmail": "name@email.com", "SlackUserID": "Uxxxxx" } } ] }
Problem: {{webhookResponse}} returns empty/no info when I use {{issue.assignee.emailAddress}} in web request URL, but return correct .json record from Airtable if I use specific email.
Is there anything missing? Any ideas on how make thing integration work? Is there easier/better way to link jira with slack so it can tag specific slack user?
Thanks.
Edit:
Names in the airtable have the following format: Name Surname or sometimes name.surname
Used displayName instead in the web request, but rule log after triggering sends me this message:
Hi @Ana , the smart value looks fine, such smart values like {{reporter.emailAddress}} should return the email address, however, as shown in the users mart value guide here,If the visibility of the user’s email address is set to Only you and admins in Profile and visibility, then the emailAddress smart value will not return any value.
Thanks for the reply!
If I'd like to keep email address visibility the same (only you and admins) I assume my second best bet is to use {{assignee.displayName}} instead?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, if this profile information "i.e display name" is made visible in Profile and visibility as well
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I tried using the display name instead with the following change in web request URL:
filterByFormula=%7BJiraUserDisplayName%7D%3D%27{{issue.assignee.displayName.replace(" ", "%20")}}%27
Am I missing here anything? Was testing on me as assignee as I have both my names setup as public to everyone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the smart value looks correct, it should return something like "Abdallah%20Khaled"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've updated the starting post with more info since I couldn't comment it for some reasons.
Error message in rule log on triggering:
Invalid URL specified when publishing web request
Illegal character in query at index 105
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it seems like a syntax error or the web request is expecting something else, you can test with the automation action "log action" to see if the smart value is returning the correct/expected user value.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.