/
Troubleshooting "Invalid <field name> name or ID" errors in JMWE for Jira Cloud Set Issue Fields post functions

Troubleshooting "Invalid <field name> name or ID" errors in JMWE for Jira Cloud Set Issue Fields post functions

 Problem

Although a correct field value/option name is provided in a JMWE Set Issue Field post-function, JMWE returns an “Invalid <field name> name or ID” error when the post function is used.

 Solution

The Set Issue Fields post function can encounter this error when setting an option field if the option name is long and/or has special characters. To avoid this error, it can be best to use the option ID instead of the option value.

  1. If the option field is based on a native Jira field, check which valid field options are available in the appropriate section. For example, if the field is “Request Type,” navigate to your project’s Settings page, and under the Request types section, select the required Request type. The option ID will be visible in the URL, where this example has an ID of 2:
    https://your-jira-site.atlassian.net/jira/servicedesk/projects/PROJECTNAME/settings/request-types/request-type/2/request-form

  2. If the field is a custom option field, navigate to Settings > Issues > Custom fields and select Contexts and default value from the Action menu at the right of the custom field. Then click Edit Options. In the Edit Options for Custom Fieldscreen, click the Edit link for the correct entry. The option ID will be in the selectedValue parameter of the URL.

 

 Related articles