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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.