I am setting up automation to create subtasks on tickets created from our service desk. I have to set a required cascading list field. All of my JSON is working except for the following:
{
"fields": {
"access_type": { "value": "Google Workspace / GSuite (manual approval rqd)" }
}
}
{
"fields": {
"access_type": { "value": "iLMS - Inspired eLearning (manager approval)" }
}
}
For comparison this one does work:
{
"fields": {
"access_type": { "value": "Active Directory (manual approval rqd)" }
}
}
I suspect it's related to the "-" and "/" in the ones that aren't working. I am new to JSON and I couldn't find anything to indicate I needed to escape out of those characters but maybe I'm wrong. I'm not sure where else to look. any help is appreciated!
Have you tried using the parent and child syntax for the cascading field, as described here:
Kind regards,
Bill
I did not try using "id" but I have used "value". That's what you see above. Do I need to include child? There is no child necessary for the parent field so I excluded that part. It worked on all of the other ones I created. Only these 2 aren't working.
I'll try id and let you know. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you know how I find the id for the option I need? I can only find articles on how to find the custom field id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I recall seeing an experimental REST API to get the options, but I cannot find it.
One way I know works is to set the option you want in an issue, and then call the REST API to get the possible smart values, search for your field, and you will find the option id, as described in this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Basically you call the function with a browser for your issue like this, and then find the option id:
yourJiraUrl/rest/api/2/issue/yourIssueKey?expand=names
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.
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.