Forums

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

Issue sending issue_url via custom payload to Slack

Jahnavi
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 24, 2024

Hi, I am setting up an automation that sends custom data to Slack webhook. 

I can send key, description, and other fields using the smart values but when I try to send the URL of the issue using the below format, it keeps failing. 

"hyperlink":

[

  { "text": "{{issue.key}}",

      "url": "https://xxxxxxx.atlassian.net/browse/{{issue.key}}" 

   }

]

I am unsure if this is a Jira or Slack limitation or if my formatting is wrong. I would appreciate any input! error when request was validated.pngerror when run is run.png

1 answer

0 votes
fdehne May 5, 2024

Hey @Jahnavi

Some ideas:

1. Maybe just try using

"url" : "{{issue.url}}"

See also the shiny treasure of Documentation for smartvalues.

2. My other guess would be that you have to construct the string like

 "url": "https://xxxxxxx.atlassian.net/browse/" + "{{issue.key}}

3. Option would be just using the "Send Slack message" action instead of the generic webhook-action. See also the documentation

The third option would be my favorite as long as you only want to show the content in slack and not going to digest it somewhat programmatically.

Hope that helps.

Cheers Frank

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events