Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Recommended Knowledge Base Articles Emailed to Users

Isaac Ruffner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 22, 2025

Hello all,

Still kind of new with creating JIRA automations. I've currently run into an issue with one  that is supposed to retrieve the top three recommended knowledge base articles for an issue and send an email to the respective reporter containing those articles. Instead, it will only send one article even though there are at least three that contain the same keywords as the issue summary. Here is an overview of the rule as I am testing it (manual trigger will be changed to automatic)Screenshot 2025-04-22 105455.pngScreenshot 2025-04-22 105546.png

I believe the issue may reside in the formatting of the Web Request URL or in the formatting when sending the email. Here is the current web request url: https://richmondnational.atlassian.net/rest/servicedeskapi/knowledgebase/article?query={{issue.summary.urlencode()}}&limit=3

The rest of the web request is formatted accordingly: Screenshot 2025-04-22 110407.png

Here is the email formatting: Screenshot 2025-04-22 110517.png

Troubleshooting steps I've already taken:

- Ensured all knowledge base articles are accessible and not locked behind permissions

- Recreated the auth token

I should also mention that I created this automation based off this post here: https://community.atlassian.com/forums/Automation-questions/Suggested-knowledge-base-article-smart-value/qaq-p/1572379

 

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 22, 2025

Hi @Isaac Ruffner -- Welcome to the Atlassian Community!

If you use your request URL with an example query in a browser tab (or standalone tool), do you get the expected 3 results?

If you write the webhook response to the audit log, do you observe the same results as the standalone call?

Finally, that result of that endpoint call should be a list of values.  If you write this to the audit log, does it show as a count of 0 to 3, confirming the JSON is interpreted as a list:

Returned article count: {{webhookResponse.body.values.size}}

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events