Error creating Jira ticket via Jira Software Tool node ("mode"?)

Describe the problem/error/question

I’m trying to build an AI agent for creating Jira Tickets. I am using the Jira Software Tool node as a Tool for my AI.

What is the error message (if any)?

I’m facing the following error message:

Problem in node ‘Create new Jira issue full’
ERROR: This parameter’s value is invalid. Please enter a valid mode.

Stack trace:

NodeOperationError: ERROR: This parameter’s value is invalid. Please enter a valid mode. at extractValue (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_2c2e1f47b69b34bef6f634a13cbf61d9/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/extract-value.ts:211:9) at ExecuteContext.getNodeParameter (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_2c2e1f47b69b34bef6f634a13cbf61d9/node_modules/n8n-core/src/execution-engine/node-execution-context/node-execution-context.ts:526:29)

Information on your n8n setup

  • n8n version: Cloud 2.21.7

@BenW the “valid mode” error usually means an AI Agent is filling in a resourceLocator parameter (like project or issuetype) without specifying the mode it should use (list / id / url). n8n’s resourceLocator pattern wants both mode + value but the agent typically only generates the value, so the node bails.

fix is to pin those resource fields to Fixed in the Jira tool config instead of letting the AI decide them — only let the agent fill in the actual content fields like summary and description. which specific fields did u expose to AI in the tool? that’ll narrow down which one is hitting the empty-mode case.

1 Like

Hi @achamm,

thanks for your incredibly fast response. Now I understand the problem. It was indeed mainly caused by the project ID and the issue type ID. I fixed those values and it worked fine.

For some optional fields I put them to separate tool nodes, which are only called if necessary.

Thank you very much!

1 Like

@BenW Your welcome! Happy to help! Feel free to mark any of the replies as the solution, so the thread will close, and have fun n8n’ing!