Self hosted Jira - Component names or IDs

Describe the problem/error/question

When I add Component Names or IDs from Add Field under Additional Fields n8n fails to fetch components from self-hosted jira server. Connection/authentication to jira server works as i’m able to select the project and issue type before this.

What is the error message (if any)?

Issues:
There was a problem loading the parameter options from server: "No data found for item-index: “0"”

Also on the tooltip of the field: “Parameter: “additionalFields.componentIds” has issues”

If i check https:///rest/api/latest/project/ url from the jira server, the components are listed in the components key of the returned JSON and there is no additionalFields key at all. Not sure if this where n8n looks for those but at least it is one place where the components are listed on self-hosted Jira.

Information on your n8n setup

  • n8n version: 1.0.5
  • Database (default: SQLite): Whatever is used by the default docker compose setup
  • n8n EXECUTIONS_PROCESS setting (default: own, main): ?
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker (docker compose)
  • Operating system: Ubuntu 22.04

Hi @pete, I am sorry for the trouble.

It seems with the upcoming retirement of their self-managed product, Atlassian doesn’t offer trials anymore either so I won’t be able to test this first hand. In general, this is the logic used for fetching components, so it’s using the /api/2/project/${project}/component endpoint documented here: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-project-components/#api-rest-api-2-project-projectidorkey-component-get

If this endpoint doesn’t work as expected on your self hosted instance, you can still enter a value manually in the Component Names or IDs field using an expression like {{ [ "abc" ] }}. n8n expects an array here, which is why the expression returning a valid array is required:

image

You will still see the warning triangle next to the field, but should still be able to execute your node.

Alternatively, you can of course use the HTTP Request node directly to perform your request without having n8n apply any additional validation logic.

Doesn’t work unfortunately:

ERROR: Bad request - please check your parameters

400 - {“errorMessages”:[],“errors”:{“components”:“Could not parse id: Purchase request”}}

the parent node in this was just some Set node.

Purchase request looks like a name, can you try using the ID of your component? From looking at Solved: How to find component ID? it should be numeric (e.g. 20500).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.