I have reviewed the Community answer on this, but I am not using the API, I am using the automation tool in JSM.
My goal is to populate the CATEGORY (LOCKED) field with a {{userInputs.<key>}} value. I keep getting the following error:
"We excluded the configured field from this action as it couldn't be found: Category"
The parameter I am passing is {{userInputs.BuildID}} where BuildID is a value that already exists in the Category drop down.
What am I missing here?
Hello @Joe Tobey
Please provide a screen image showing your entire rule and the details of the step where you are trying to populate the field.
Is the field included in the issue's Field Layout? Can you set it if you execute the same action manually?
I can manually Set it for an edit or new screen.
This is the section of the automation where I am applying the user input
The input value for {{userInputs.BuildID}} is "build 2501". Manually I can see the value (and others)
The exact error is:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is possible that there is more than one custom field named "Category" across your instance and the Automation rule is unclear which one you are trying to reference.
Follow the guidance on this page to get the field ID associated with the Category field in the issues you are targeting.
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Then use the More Options section of the action to set the field using JSON.
https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/
To set a single select list field you would need to use code such as the following:
EDITED:
{
"fields": {
"customfield_11449" : { "value": "{{userInputs.BuildID}}" }
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The end of the user input smart value is missing the closing double-curly brackets.
Kind regards,
Bill
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.