Updating jira custom fields

Describe the issue/error/question

Hey community, I’m stuck in one workflow where I want to update my custom fields in Jira node. For that I found the custom field id and I’m trying to write an expression to do the job.

The custom field looks like this

I wrote the value like this:
{{ { “self”: “https://hellofresh.atlassian.net/rest/api/2/customFieldOption/14318”, “key”: “OMGS-1”, “id”: “181004” } }}

I’m not sure if my expression is wrong or actually its another error because when I execute I get this message:

Can anyone guide me please?

“meta”: {
“instanceId”: “bd3424651820da96219b3bf8bf1cdfabcd2b0cc2dbde58159a106ccfa63cca09”
“nodes”: [
“parameters”: {
“operation”: “update”,
“issueKey”: “={{ $json["key"] }}”,
“updateFields”: {
“customFieldsUi”: {
“customFieldsValues”: [
“fieldId”: “customfield_14318”,
“fieldValue”: “={{ { "self": "https://hellofresh.atlassian.net/rest/api/2/customFieldOption/14318\”, "key": "OMGS-1", "id": "181004" } }}"
“name”: “Create Jira Ticket”,
“type”: “n8n-nodes-base.jira”,
“typeVersion”: 1,
“position”: [
“id”: “3b6603ea-3735-49be-a0fd-c2e5a740e687”,
“credentials”: {
“jiraSoftwareCloudApi”: {
“id”: “24”,
“name”: “Global Jira Account”
“connections”: {}

What is the error message (if any)?

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]:

That error suggests a problem on the Jira side. Are you sure the custom field is visible in the edit issue screen for that project? You can often tell if this is the case because the field won’t show in the drop-down list, you shouldn’t have to put the custom field in manually.

1 Like

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