Forum Discussion
RayN925
Jul 22, 2024Copper Contributor
Workflows - Posting a Card
I'm in the process of migrating our Jira integration with teams from using the soon to be deprecated Connectors, to Workflows. I have two problems that I can't see to overcome.
1. All the messages are posted as '[My Name] via Workflows posted a new message'. Is there any way the message can come from another user or no user?
2. The preview for the messages (in the notification popup and Activity screen) is 'Card', instead of anything useful.
Together this makes the notifications not very useful.
What I have done:
The workflow is set up
And what is being posted to the webhook is (for example).
{
"type": "message",
"attachments": [{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"body": [{
"type": "ColumnSet",
"columns": [{
"type": "Column",
"width": "auto",
"items": [{
"type": "Image",
"url": "https://i.imgur.com/FrVumxY.png",
"size": "Medium"
}
]
}, {
"type": "Column",
"width": "stretch",
"verticalContentAlignment": "Center",
"items": [{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Component Missing [ADP-xxx]"
}
]
}
]
}, {
"type": "TextBlock",
"text": "Initiator: ",
"wrap": true
}, {
"type": "TextBlock",
"text": "ADP-xxx: Fixing reset password validation",
"wrap": true,
"weight": "Bolder",
"color": "Accent",
}, {
"type": "TextBlock",
"text": "Status: QA Ready",
"wrap": true
}, {
"type": "TextBlock",
"text": "Type: Bug",
"wrap": true
}, {
"type": "TextBlock",
"text": "Assignee: ",
"wrap": true
}
],
"actions": [{
"type": "Action.OpenUrl",
"title": "Open in Jira",
"url": "https://xxx.atlassian.net/browse/ADP-xxx"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4"
}
}
]
}
I have tried posting various different combinations of summary attributes with no effect.
Is there a whole better way of doing this, or is there a few tweaks I can make?
3 Replies
Sort By
- Prasad_Das-MSFT
Microsoft
RayN925 -
1.If you want to send by using option 'Flow bot', it will send as below:
If you want the sender's name only to be reflected without via Workflows text, you can choose below option while setting up/editing the workflow. User's image
This will send the card as below:
2.Currently there is no way to change the preview for the messages (in the notification popup and Activity screen). It will show as 'Card' which is by design.Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- mkowalskigenCopper Contributor
Have there been any updates related to the display of these workflow cards in the activity feed?
This entire forced transition to Workflows has been pretty terribly done all around and this is just another loss in functionality / step backwards that has seemingly not been addressed by Microsoft.
- mattgyverCopper Contributor
"This entire forced transition to Workflows has been pretty terribly done all around"
Agreed.... With the 365 connector, we were able to see HELPFUL information right in activity feed and notifications. Having to go into each to see information may not sound like much additional work, but it really does affect things.