Skip to content

Instantly share code, notes, and snippets.

@runceel
Created June 21, 2021 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runceel/7dfcadc9c9e70381059ac8d118b330e8 to your computer and use it in GitHub Desktop.
Save runceel/7dfcadc9c9e70381059ac8d118b330e8 to your computer and use it in GitHub Desktop.
{
"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"
}
<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