I'm trying to inject a new JIRA issue using JIRA REST API. with JSON format
Generally it works, however it doesn't work when a "Select List (cascading)" field is missing the child value (to be specific the field has only parent values but no defined children).
The JSON line looks like this: "customfield_22222": {"value": "Test", "child": {"value":"None"} }
And the received error is: {"errorMessages":[],"errors":{"customfield_22222":"Child Option value 'None' is not valid"}}
Using other child values such as null, "", etc. also didn't solve it.
Will be glad to learn from your experience.
Dear @Plotnik_ Guy ,
welcome to the comunity.
I just wrote a new article for your: How to set select lists (single, multiple, cascading), radio or checkboxes on create issue with REST
So long and thanks for accepting my answer
Thomas
Thank Thomas, it worked!
Much appreciated!
Guy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am creating an automation that when a bug type issue is created, the "Category by type of issue" field (cascade list) is edited with the first option Bug and the second option Incident.
However it doesn't work for me
"fields": {
"Category by type of issue" : { "value": "Bug", "child": { "value" : "Incident"} }
}
Do you know what I'm doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your is looking good to me, have you find any error logs/messages that was posted when you tried this?
Your JSON should look like :
{
"fields": {
"project": {
"key": "REST"
},
"summary": "Issue created from REST API",
"issue type": {
"id": "1"
},
"customfield_10300": {
"value": "Mammal",
"child": {
"value": "Elephant"
}
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm having this exact same issue in a single select custom field - 'Task Type' is the name of Custom Field #10097, and the value I'm passing it is an exact option from the ones available on my custom field config screen, but I still get this:
Truncated server response: {"errorMessages":[],"errors":{"customfield_10097":"Specify a valid 'id' or 'name' for Task Type"}}
I've tried passing "id": "6" since it's the 6th one in the list - no dice.
I've tried passing both id and value as the numeric id (10195) associated with my option. Still nothing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.