Created
June 21, 2021 09:57
-
-
Save runceel/7dfcadc9c9e70381059ac8d118b330e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "AdaptiveCard", | |
"body": [ | |
{ | |
"type": "TextBlock", | |
"size": "Medium", | |
"weight": "Bolder", | |
"text": "${title}" | |
}, | |
{ | |
"type": "ColumnSet", | |
"columns": [ | |
{ | |
"type": "Column", | |
"items": [ | |
{ | |
"type": "Image", | |
"style": "Person", | |
"url": "${creator.profileImage}", | |
"size": "Small" | |
} | |
], | |
"width": "auto" | |
}, | |
{ | |
"type": "Column", | |
"items": [ | |
{ | |
"type": "TextBlock", | |
"weight": "Bolder", | |
"text": "${creator.name}", | |
"wrap": true | |
}, | |
{ | |
"type": "TextBlock", | |
"spacing": "None", | |
"text": "Created {{DATE(${createdUtc},SHORT)}}", | |
"isSubtle": true, | |
"wrap": true | |
} | |
], | |
"width": "stretch" | |
} | |
] | |
}, | |
{ | |
"type": "TextBlock", | |
"text": "${description}", | |
"wrap": true | |
}, | |
{ | |
"type": "FactSet", | |
"facts": [ | |
{ | |
"$data": "${properties}", | |
"title": "${key}:", | |
"value": "${value}" | |
} | |
] | |
} | |
], | |
"actions": [ | |
{ | |
"type": "Action.ShowCard", | |
"title": "Set due date", | |
"card": { | |
"type": "AdaptiveCard", | |
"body": [ | |
{ | |
"type": "Input.Date", | |
"id": "dueDate" | |
}, | |
{ | |
"type": "Input.Text", | |
"id": "comment", | |
"placeholder": "Add a comment", | |
"isMultiline": true | |
} | |
], | |
"actions": [ | |
{ | |
"type": "Action.Submit", | |
"title": "OK" | |
} | |
], | |
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json" | |
} | |
}, | |
{ | |
"type": "Action.OpenUrl", | |
"title": "View", | |
"url": "${viewUrl}" | |
} | |
], | |
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | |
"version": "1.3" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AdaptiveCard xmlns="http://adaptivecards.io/schemas/adaptive-card.json"> | |
<TextBlock size="Medium" weihght="Bolder" text="${title}" /> | |
<ColumnSet> | |
<Column width="auto"> | |
<Image style="Person" url="${creator.profileImage}" size="small" /> | |
</Column> | |
<Column width="stretch"> | |
<TextBlock weight="border" text="${creator.name}" wrap="true" /> | |
<TextBlock spacing="None" text="Created {{DATE(${createdUtc}, SHORT)}}" isSubtle="true" wrap="true" /> | |
</Column> | |
</ColumnSet> | |
<TextBlock text="${description}" wrap="true" /> | |
<FactSet data="${properties}"> | |
<Fact title="${key}" value="${value}" /> | |
</FactSet> | |
<Actions> | |
<Action.ShowCard title="Set due date"> | |
<AdaptiveCard> | |
<Input.Date id="dueDate" /> | |
<Input.Text id="comment" placeholder="Add a comment" isMultiline="true" /> | |
<Actions> | |
<Action.Submit title="OK" /> | |
</Actions> | |
</AdaptiveCard> | |
</Action.ShowCard> | |
<Action.OpenUrl title="View" url="${viewUrl}" /> | |
</Actions> | |
</AdaptiveCard> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment