Hello
I'm trying to set a Custom field value in Automation rule, but it is not listed in the field value picker.
The filed is a Select List (cascading) with a few options to choose.
Please help.
Cascading select list is currently not supported there to be picked up from the field list.
But you can update the value using the 'More options' --> 'Additional fields' textbox available. Follow the REST API call format for updating values.
Example below (insert the values into the <> tags as needed)
"fields": {
"<field name>" : { "value": "<value1>", "child": { "value" : "<child value 1>"} }
}
}
Hello @Gikka
Many Thanks for your response.
I am sorry , but I couldn't find the 'More Options' field anywhere.
Regards,
Sai
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.
Sorry, I thought you were trying to 'Edit' the issue to set the value for field.
To define the 'If' rule for Cascading select, you can choose the 'Advance compare condition' option and write REST API check for a cascading select.
Place the custom field ID for the cascade select list in the rule below.
For parent value: {{issue.customfield_xxxxx.value}} equals value1
AND
For child value: {{issue.customfield_xxxxx.child.value}} equals child1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also use the 'JQL condition' available to run a query to check for the custom field values.
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.
Sorry I am new to REST API
Can you suggest me if I can add OR condition in the value filed
For eg :
{{issue.customfield_xxxxx.child.value}} equals child1 or child2 or child3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If for multiple values, better to use JQL then.
'<field name>' in (val1, val2 ..)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gikku How would one search for JQL for the childvalue though? I'm not actually certain I know of a way that would pull that off?
I'm trying to do something similar to what Sai was doing here, where I'm concerned with the childvalue being 'None' and trying to enforce it by moving the issue back to a previous status when it is blank.
However, I don't seem to be able to get {{issue.customfield_xxxxx.child.value}} equals <anything> to trigger an event and was going to try the JQL before realizing I can't seem to come up with JQL that looks at the child value.
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.