Open
Description
I am using M365 agents toolkit to develop a declarative agent. I write an OpenAPI file and define a post request, its body includes an array of string and other data. the following is its code snippet:
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
JiraInstance:
type: string
description: jira instance URL (e.g., https://your-domain.atlassian.net)
ProjectKey:
type: string
description: The key of the Jira project (e.g., PROJ)
IssueSummary:
type: string
description: Summary of the Jira issue
IssueDescription:
type: string
description: Detailed description of the Jira issue
IssueType:
type: string
description: The type of Jira issue (e.g., Task, Bug)
Comments:
type: array
items:
type: string
description: Comments to be added to the issue
description: Additional comments to be added to the issue
example: ["Initial comment", "Follow-up comment"]
default: []
required:
- ProjectKey
- IssueSummary
- IssueDescription
- IssueType
- Comments
when I test this agent, if I don't set comments, then this function can be called. If I set comments, such as ["test1", "test2"], then this function will not be called. why? I think it maybe a issue of Copilot agent.
Additionally, when the "Confirmation prompts" message appears, the value of "Comments" is correct(["test1", "test2"]), but this function still cannot be invoked. The following the information of Console:
ACTIONS
(√) Enabled action: Call Power Automate Flow to Create Jira Issue • version 1.0.0 • U_76233d65-6601-ccdd-b7cb-0881878fa257.menuPlugin
(√) Matched functions: triggerPowerAutomateFlow
[2025-06-13T14:05:58.998Z] Debug: Stopping HubConnection.
82801.0b092ba0c065266ccb3a.chunk.js:1
[2025-06-13T14:05:58.999Z] Debug: HttpConnection.stopConnection(undefined) called while in state Disconnecting.
82801.0b092ba0c065266ccb3a.chunk.js:1
[2025-06-13T14:05:58.999Z] Information: Connection disconnected.
82801.0b092ba0c065266ccb3a.chunk.js:1
[2025-06-13T14:05:58.999Z] Debug: HubConnection.connectionClosed(undefined) called while in state Disconnecting.