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,
}
]
}
],
)