Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API adding name with spaces to custom field doesn't work

DeniseThompson397
Contributor
January 29, 2019

Hi, There are a couple of similar questions on this but I am unable to get an answer.  I am trying to create a JIRA using VBA and Json and one of our custom fields contains a blank in the name and I have tried most things including single quotes and using %20 but my job fails with

"{"errorMessages":[],"errors":{"customfield_10021":"Option value 'firstword nextword' is not valid"}}"

 

When I replace the customfield with a 1 word value without spaces it works.  Any ideas?

 

'{

'   "fields": {

'     "project": {

'         "key": "TESTproject"

'     },

'     "summary": "test summary",

'     "description": "this is a test",

'     "issuetype": {

'         "name": "Issue"

'     },

'     "components": [

'         {

'           "name": "None"

'         }

'     ],

'     "customfield_10021": [

'         {

'           "value": "firstword nextword"

'         }

'     ],

'     "customfield_12030": {

'        "value": "another value"

'     }

'   }

'}

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, aafp, jira migration, marketing collaboration, end siloed work, streamline workflows, kerrie gottschalk, jira cloud admins, unified marketing, process visibility, team efficiency, cross-team collaboration

How Kerrie Gottschalk unified AAFP’s marketing team with Jira

At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.

Read the story
AUG Leaders

Atlassian Community Events