Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Azure DevOps Wiki Microsoft 365 Copilot connector allows your organization to index wikis from the Azure DevOps service. After you configure the connector and index content, you need to set up a search result page.
To set up the search result page, you need to:
- Set up search vertical.
- Set up search result type.
In this document, we have provided a sample result layout JSON required for setting up your result layout for the Azure DevOps Wiki Copilot connector.
Before you get started
You must have configured the Azure DevOps Wiki Copilot connector. To consume the sample result layout JSON as is, you must select the following properties for indexing with the mentioned search schema.
Note
- Retrieve search attribute is required for displaying a property in the search result template. A property can have other search attributes also.
Property | Search schema attribute required |
---|---|
Title | Retrieve |
RemoteURL | Retrieve |
LastPublishedAuthorName | Retrieve |
LastPublishedDate | Retrieve |
Content | Content property |
Organization | Retrieve |
Project | Retrieve |
WikiIdentifier | Retrieve |
Result layout
With this sample, your search results will look like:
And here's the layout's associated JSON file:
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "https://searchuxcdn.blob.core.windows.net/designerapp/images/AzureDevOpsLogo.png",
"horizontalAlignment": "Center",
"altText": "Not available",
"width": "-1px",
"size": "Small"
}
]
},
{
"type": "Column",
"width": 8,
"items": [
{
"type": "TextBlock",
"text": "[${Title}](${RemoteURL})",
"color": "Accent",
"size": "Medium",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "__${LastPublishedAuthorName}__ modified on {{DATE(${LastPublishedDate})}}",
"spacing": "Small"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "__Organization:__ ${Organization}"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "__Project:__ ${Project}"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "__Wiki:__ ${WikiIdentifier}"
}
]
}
]
},
{
"type": "TextBlock",
"text": "${ResultSnippet}",
"wrap": true,
"maxLines": 3,
"spacing": "Medium"
}
],
"horizontalAlignment": "Center",
"spacing": "Medium"
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"$data": {
}
}