attachments property to add and display extra info inside slack message.attachment parts of Slack message when I try create task in Jira.
Part of code how I create message with attachments (Python api for Slack)
client.chat_postMessage(
channel=channel_id,
attachments=[
{
"text": "This is an attachment",
"color": "#2eb886",
"fields": [
{
"title": "Priority",
"value": "High",
"short": False,
},
{
"title": "Test",
"value": "Test values",
"short": False,
}
]
},
{
"text": "This is an attachment 2",
"fields": [
{
"title": "Priority",
"value": "High",
"short": False,
},
{
"title": "Test",
"value": "Test values",
"short": False,
}
]
}
],
)
Hi @Andrey Otto
Welcome and great to have you in the Atlassian community!
The Jira Cloud app for Slack only reads the main text content when creating an issue. As a result, any information in the attachments blocks, including your fields and secondary text, is intentionally ignored. This isn't a configurable bug; the parser simply doesn't process the attachment payload.
Did you end up solving this in the meantime, or are you still looking for a way through?
Cheers, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.