Using jira custom field

We updated to latest build and keep getting this error. Is this permission issue with API account we are using or something else ? Thank you in advance, the amount of new features you all add is insane

I tried the following as well

The error message it’s ok. You have to set the expression in the field value not in the field id. In the fieldId just select the field you are interesting in.

Im sorry not really following here.

My customer field ID is 15604, that’s all I need to write in fieldValue ? the FieldID always has no data for me.

No, in the field value you need to provide the value with an expression. Is the field id loading for you? What type is the custom field you are trying to set?

the field id will not load for me. the very first photo is how I see it originally after selecting project and type of ticket to create.

Ahh, ok, now I get it. I thought the Field ID was loading for you. It should load the custom fields for you. I’m gonna investigate. In the meantime, you can always set also the Field ID using an expression.

I saw someone else asked about how to use Component/s field that is built in JIRA. Could you help me writing expression to use it ? I know ID of the components I want to use but I don’t know how to tell n8n about it so it can talk to JIRA properly. Thank you for your help on this.

@Artie_Sobol yes, can you share the workflow you are using?

{
  "nodes": [
    {
      "parameters": {
        "dataType": "string",
        "value1": "={{$node[\"Convert_to_Json\"].json[\"new_value\"][\"channel\"][\"id\"]}}",
        "rules": {
          "rules": [
            {
              "value2": "123455677",
              "output": 1
            },
            {
              "value2": "123455677",
              "output": 2
            },
            {
              "value2": "123455677",
              "output": 2
            },
            {
              "value2": "123455677",
              "output": 2
            }
          ]
        },
        "fallbackOutput": 0
      },
      "name": "Main_switch_channel1",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 1,
      "position": [
        930,
        630
      ]
    },
    {
      "parameters": {
        "jiraVersion": "server",
        "project": "14700",
        "issueType": "11200",
        "summary": "={{$node[\"Slack1\"].json[\"profile\"][\"real_name\"]}} Created a ticket",
        "additionalFields": {
          "description": "={{$node[\"Function\"].json[\"myVariable\"]}}",
          "customFieldsUi": {
            "customFieldsValues": [
              {
                "fieldValue": "15604"
              }
            ]
          }
        }
      },
      "name": "Jira7",
      "type": "n8n-nodes-base.jira",
      "typeVersion": 1,
      "position": [
        1070,
        610
      ],
      "credentials": {
        "jiraSoftwareServerApi": "Artie"
      }
    },
    {
      "parameters": {
        "conditions": {
          "string": [],
          "boolean": [
            {
              "value1": "={{$runIndex==0}}",
              "value2": true
            }
          ]
        },
        "combineOperation": "any"
      },
      "name": "Check_ticket",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        1220,
        620
      ]
    },
    {
      "parameters": {
        "resource": "user",
        "user": "={{$node[\"Convert_to_Json\"].json[\"new_value\"][\"message\"][\"user\"]}}"
      },
      "name": "Slack1",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        770,
        660
      ],
      "credentials": {
        "slackApi": "slakc-jira-non-IT"
      }
    },
    {
      "parameters": {
        "functionCode": "\n//items[0].json.myVariable = 1;\nconst channel = $item(0).$node[\"Function1\"].json[\"body\"][\"payload\"];\n\nreturn [{json:{new_value:JSON.parse(channel)}}];"
      },
      "name": "Convert_to_Json",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        630,
        660
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "orderdata",
              "value": "={{$node[\"Webhook1\"].json[\"body\"][\"payload\"]}}"
            }
          ]
        },
        "options": {}
      },
      "name": "set_data_variable",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        660
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "test",
        "responseCode": 201,
        "options": {}
      },
      "name": "Webhook1",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        350,
        660
      ]
    }
  ],
  "connections": {
    "Main_switch_channel1": {
      "main": [
        [
          {
            "node": "Jira7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Jira7": {
      "main": [
        [
          {
            "node": "Check_ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack1": {
      "main": [
        [
          {
            "node": "Main_switch_channel1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert_to_Json": {
      "main": [
        [
          {
            "node": "Slack1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "set_data_variable": {
      "main": [
        [
          {
            "node": "Convert_to_Json",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook1": {
      "main": [
        [
          {
            "node": "set_data_variable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

The field id has to be set to {{“customfield_15604”}} using an expression.

The field value depends on the custom field type. If it’s a text, then you can type in the value in the text box. If it’s another type, then you can set the value using an expression. Similar to what I did with the field id expression above.

Im sorry to bug you again on this… I’ve been struggling with this all day :smiley:

{{"[{“name”:“20800”}]"}} I wrote this for my expression as I need an array.
Results look like this: [{“name”:“20800”}]

I have a feeling im making a really silly mistake and can’t catch it. I keep getting error that components data is not array.

I was able to fix the first part with your help just can’t get the array in there

@Artie_Sobol check the example below. Do that in the field value.

omg thank you so much !

Glad that it worked. Let’s us know if you have other question. Have fun.